pth_send

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
LICENSE
VERSION
SEE ALSO

NAME

pth_send, pth_sendto, pth_sendmsg, pth_recv, pth_recvfrom, pth_recvmsg - pseudothread network system calls

SYNOPSIS

#include <pthr_pseudothread.h>

int pth_send (pseudothread pth, int s, const void *msg, int len, unsigned int flags);
int pth_sendto (pseudothread pth, int s, const void *msg, int len, unsigned int flags, const struct sockaddr *to, int tolen);
int pth_sendmsg (pseudothread pth, int s, const struct msghdr *msg, unsigned int flags);
int pth_recv (pseudothread pth, int s, void *buf, int len, unsigned int flags);
int pth_recvfrom (pseudothread pth, int s, void *buf, int len, unsigned int flags, struct sockaddr *from, int *fromlen);
int pth_recvmsg (pseudothread pth, int s, struct msghdr *msg, unsigned int flags);

DESCRIPTION

pth_send, pth_sendto, pth_sendmsg, pth_recv, pth_recvfrom and pth_recvmsg behave just like the corresponding system calls. However these calls handle non-blocking sockets and cause the thread to sleep on the reactor if it would block.

AUTHOR

Richard Jones <rich@annexia.org>

LICENSE

GNU LGPL (see http://www.gnu.org/)

VERSION

pthrlib-3.0.3

SEE ALSO

pth_poll(3), pth_read(3), pth_write(3).