NAME

sp_send - send a ubuf into endpoint

SYNOPSIS

#include <xio/sp.h>

int sp_send (int eid, char *ubuf);

DESCRIPTION

The function will send a ubuf containing the data from buffer pointed to by ubuf parameter to the endpoint eid. the ubuf 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 ubuf to receive at the moment.

SEE ALSO

sp_recv(3) sp(7)

AUTHORS

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