NAME

xsend - send a message

SYNOPSIS

#include <xio/socket.h>

int xsend (int s, const void *xmsg);

DESCRIPTION

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]

RETURN VALUE

On success, zero is returned. On error, -1 is returned, and errno is set appropriately.

ERRORS

EAGAIN

Non-blocking mode was requested and there’s no message to receive at the moment.

EINTR

The operation was interrupted by delivery of a signal before the message was received.

SEE ALSO

xrecv(3) xio(7)

AUTHORS

Dong Fang <yp.fangdong@gmail.com>
Martin Sustrik <sustrik@250bpm.com>