NAME

sp_recv - receive one ubuf from endpoint

SYNOPSIS

#include <xio/sp.h>

int sp_recv (int eid, char *ubuf);*

DESCRIPTION

Receive a ubuf from the endpoint eid and store it in the buffer referenced by the ubuf argument.

RETURN VALUE

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

ERRORS

EAGAIN

No any available ubuf. try again.

SEE ALSO

sp_send(3) sp_close(3) sp(7)

AUTHORS

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