NAME

xrecv - receive a message

SYNOPSIS

#include <xio/socket.h>

int xrecv (int s, void *xmsg);*

DESCRIPTION

Receive a message from the socket s and store it in the buffer referenced by the xmsg argument.

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

xsend(3) xio(7)

AUTHORS

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