Dong Fang <yp.fangdong@gmail.com> Martin Sustrik <sustrik@250bpm.com>
xrecv - receive a message
#include <xio/socket.h>
int xrecv (int s, void *xmsg);*
Receive a message from the socket s and store it in the buffer referenced by the xmsg argument.
On success, zero is returned. On error, -1 is returned, and errno is set appropriately.
Non-blocking mode was requested and there’s no message to receive at the moment.
The operation was interrupted by delivery of a signal before the message was received.
Dong Fang <yp.fangdong@gmail.com> Martin Sustrik <sustrik@250bpm.com>