Dong Fang <yp.fangdong@gmail.com> Martin Sustrik <sustrik@250bpm.com>
xsend - send a message
#include <xio/socket.h>
int xsend (int s, const void *xmsg);
The function will send a message containing the data from buffer pointed to by xmsg parameter to the socket s. the xmsg must alloc by xallocubuf[3]
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>