Zen API | Contents | Reference | Previous | Up | Next

zReceiver_Read
zReceiver functions
C

    zStatus zReceiver_Read(zReceiver receiver, void* buffer, zUIntPtr size);

Parameters

Parameters | Description
zReceiver receiver | zReceiver object.
void* buffer | Buffer to receive bytes.
zUIntPtr size | The number of bytes to read.

Description

Reads one or more bytes from the underlying socket.

Remarks

This function is an alternative to calling zReceiver_Receive. zReceiver_Read should be used when low-level access to network data is required, or when the sender is not transmitting messages in FireSync Result format. Call zReceiver_Wait until a message has arrived, then call zReceiver_Read to read out the message.

This function will fail if a callback handler was registered with the zReceiver_SetReceiveHandler function.

This function can only be called after calling zReceiver_Open.

File

zReceiver.h

Copyright (c) 2008-2010 by LMI Technologies Inc. All rights reserved.
Contents | Reference