[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Communications Technical Reference, Volume 1

xdrrec_endofrecord Subroutine

Purpose

Causes the current outgoing data to be marked as a record.

Library

C Library (libc.a)

Syntax

#include <rpc/xdr.h>
xdrrec_endofrecord (xdrs, sendnow)
XDR *xdrs;
bool_t sendnow;

Description

The xdrrec_endofrecord subroutine causes the current outgoing data to be marked as a record and can only be invoked on streams created by the xdrrec_create subroutine. If the value of the sendnow parameter is nonzero, the data in the output buffer is marked as a completed record and the output buffer is optionally written out.

Parameters

xdrs Points to the eXternal Data Representation (XDR) stream handle.
sendnow Specifies whether the record should be flushed to the output tcp stream.

Return Values

Upon successful completion, this subroutine returns a value of 1. If unsuccessful, it returns a value of 0.

Implementation Specifics

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

Related Information

The xdrrec_create subroutine.

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.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]