Go to the first, previous, next, last section, table of contents.


Prototypes and descriptions

C function: int FM_extract (unsigned int maxbytes)
Extract (at most) a given number of bytes from the network, calling the appropriate handler for each message. maxbytes, the number of bytes to be extracted, is a soft upper bound (see section Semantics). Returns the number of bytes actually extracted.

C function: void FM_receive (void *buffer, FM_stream *receivestream, unsigned int length)
Receive a given number of bytes from a stream into a buffer. May be called several times per message. Can only be called from within a handler. Arguments:
buffer
Pointer to a buffer where the data is to be stored.
receivestream
FM stream from which data is being received. Must be the stream passed directly to the invoking handler function.
length
Number of bytes to be extracted.


Go to the first, previous, next, last section, table of contents.