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

Item Description
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.