Visit Platform at http://www.platform.com

extern LIBVEM_API int vem_read(vem_handle_t *, vem_message_t *)

Read a message from opened handle

Reads one message from given connection. This should only be called after vem_select() has indicated there is something to read. Otherwise, this call will block indefinitely, until something is read from the connection. Memory for message should be allocated by the caller. Upon successful return, the content field points to struct corresponding to the message code.

Note:
It is the caller's responsibility to free this memory after it is finished with it.
See also:
Helper functions vem_clear_message/vem_free_message
Returns:
0 on success, < 0 otherwise.


     
Date Modified: 26 Nov 2007
Platform Computing: www.platform.com

Platform Support: support@platform.com
Platform Information Development: doc@platform.com

Copyright © 2001-2007 Platform Computing Corporation. All rights reserved.