[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Communications Technical Reference, Volume 1

xdrstdio_create Subroutine

Purpose

Initializes the XDR data stream pointed to by the xdrs parameter.

Library

C Library (libc.a)

Syntax

#include <stdio.h>
#include <rpc/xdr.h>
void xdrstdio_create (xdrs, file, op)
XDR *xdrs;
FILE *file;
enum xdr_op op;

Description

The xdrstdio_create subroutine initializes the eXternal Data Representation (XDR) data stream pointed to by the xdrs parameter. The XDR stream data is written to or read from the standard input/output stream pointed to by the file parameter.

Note: The destroy routine associated with such an XDR stream calls the fflush function on the file stream, but never calls the fclose function.

Parameters

xdrs Points to the XDR stream handle to initialize.
file Points to the standard I/O device that data is written to or read from.
op Specifies an XDR direction. The possible choices are XDR_ENCODE, XDR_DECODE, or XDR_FREE.

Implementation Specifics

This subroutine is part of Base Operating System (BOS) Runtime.

Related Information

List of XDR Programming References.

eXternal Data Representation (XDR) Overview for Programming in AIX Communications Programming Concepts.

Understanding XDR Non-Filter Primitives in AIX Communications Programming Concepts.


[ Previous | Next | Contents | Glossary | Home | Search ]