FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kSystem_ReceiveData ( kSystem  system,
kMsgInfo msg,
k64u  timeout 
)

Waits until at least one data message has been received and then returns the message.

This function can be used as an alternative to registering a data callback.

Messages receieved via this method should be disposed (kObject_Dispose) when no longer needed.

This method is thread-safe.

Parameters
systemSystem object.
msgThe message object that was received (see note).
timeoutTimeout duration, in microseconds.
Returns
Operation status.