Add to git.
[pthrlib.git] / doc / pth_sendto.3.html
1 <html>
2 <head>
3 <meta name="generator" content="groff -Thtml, see www.gnu.org">
4 <meta name="Content-Style" content="text/css">
5 <title>pth_send</title>
6 </head>
7 <body>
8
9 <h1 align=center>pth_send</h1>
10 <a href="#NAME">NAME</a><br>
11 <a href="#SYNOPSIS">SYNOPSIS</a><br>
12 <a href="#DESCRIPTION">DESCRIPTION</a><br>
13 <a href="#AUTHOR">AUTHOR</a><br>
14 <a href="#LICENSE">LICENSE</a><br>
15 <a href="#VERSION">VERSION</a><br>
16 <a href="#SEE ALSO">SEE ALSO</a><br>
17
18 <hr>
19 <!-- Creator     : groff version 1.17.2 -->
20 <!-- CreationDate: Fri Aug 30 16:16:38 2002 -->
21 <a name="NAME"></a>
22 <h2>NAME</h2>
23 <table width="100%" border=0 rules="none" frame="void"
24        cols="2" cellspacing="0" cellpadding="0">
25 <tr valign="top" align="left">
26 <td width="10%"></td><td width="90%">
27 pth_send, pth_sendto, pth_sendmsg, pth_recv, pth_recvfrom, pth_recvmsg - pseudothread network system calls</td></table>
28 <a name="SYNOPSIS"></a>
29 <h2>SYNOPSIS</h2>
30
31 <table width="100%" border=0 rules="none" frame="void"
32        cols="2" cellspacing="0" cellpadding="0">
33 <tr valign="top" align="left">
34 <td width="10%"></td><td width="90%">
35 <pre><b>#include &lt;pthr_pseudothread.h&gt;
36
37 int pth_send (pseudothread pth, int s, const void *msg, int len, unsigned int flags);
38 int pth_sendto (pseudothread pth, int s, const void *msg, int len, unsigned int flags, const struct sockaddr *to, int tolen);
39 int pth_sendmsg (pseudothread pth, int s, const struct msghdr *msg, unsigned int flags);
40 int pth_recv (pseudothread pth, int s, void *buf, int len, unsigned int flags);
41 int pth_recvfrom (pseudothread pth, int s, void *buf, int len, unsigned int flags, struct sockaddr *from, int *fromlen);
42 int pth_recvmsg (pseudothread pth, int s, struct msghdr *msg, unsigned int flags);
43 </b></pre></td></table>
44 <a name="DESCRIPTION"></a>
45 <h2>DESCRIPTION</h2>
46
47 <table width="100%" border=0 rules="none" frame="void"
48        cols="2" cellspacing="0" cellpadding="0">
49 <tr valign="top" align="left">
50 <td width="10%"></td><td width="90%">
51 <b>pth_send</b>, <b>pth_sendto</b>, <b>pth_sendmsg</b>,
52 <b>pth_recv</b>, <b>pth_recvfrom</b> and <b>pth_recvmsg</b>
53 behave just like the corresponding system calls. However
54 these calls handle non-blocking sockets and cause the thread
55 to sleep on the reactor if it would block.</td></table>
56 <a name="AUTHOR"></a>
57 <h2>AUTHOR</h2>
58
59 <table width="100%" border=0 rules="none" frame="void"
60        cols="2" cellspacing="0" cellpadding="0">
61 <tr valign="top" align="left">
62 <td width="10%"></td><td width="90%">
63 Richard Jones &lt;rich@annexia.org&gt;</td></table>
64 <a name="LICENSE"></a>
65 <h2>LICENSE</h2>
66
67 <table width="100%" border=0 rules="none" frame="void"
68        cols="2" cellspacing="0" cellpadding="0">
69 <tr valign="top" align="left">
70 <td width="10%"></td><td width="90%">
71 GNU LGPL (see http://www.gnu.org/)</td></table>
72 <a name="VERSION"></a>
73 <h2>VERSION</h2>
74
75 <table width="100%" border=0 rules="none" frame="void"
76        cols="2" cellspacing="0" cellpadding="0">
77 <tr valign="top" align="left">
78 <td width="10%"></td><td width="90%">
79 pthrlib-3.0.3</td></table>
80 <a name="SEE ALSO"></a>
81 <h2>SEE ALSO</h2>
82
83 <table width="100%" border=0 rules="none" frame="void"
84        cols="2" cellspacing="0" cellpadding="0">
85 <tr valign="top" align="left">
86 <td width="10%"></td><td width="90%">
87 <b>pth_poll(3)</b>, <b>pth_read(3)</b>,
88 <b>pth_write(3)</b>.</td></table>
89 <hr>
90 </body>
91 </html>