Record Streams

Record streams are XDR streams built on top of record fragments, which are built on TCP/IP streams.

TCP/IP is a connection protocol for transporting large streams of data at one time, instead of transporting a single data packet at a time.

Record streams are primarily used to make connections between remote procedure calls and TCP. They can also be used to stream data into or out of normal files.

XDR provides the following subroutines for use with record streams:

Item Description
xdrrec_create Provides an XDR stream that can contain long sequences of records.
xdrrec_endofrecord Causes the current outgoing data to be marked as a record.
xdrrec_eof Checks the buffer for an input stream that identifies the end of file (EOF).
xdrrec_skiprecord Causes the position of an input stream to move to the beginning of the next record.