summaryrefslogtreecommitdiff
path: root/doc/explan_netlib.c.xml
blob: 8a2beb13249920dbe2e6caf3f80a70079889a59e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<sect1 id="netlib.c"><title><filename>netlib.c</filename></title>
<informaltable frame='all' pgwide='1'>
<tgroup cols='2'>
<colspec colname='c1'></colspec>
<colspec colname='c2'></colspec>
<spanspec spanname='s1' namest='c1' nameend='c2'></spanspec>

<!-- Not documented: netlib_errstr() -->

<thead>
<row>
  <entry>Functions:-</entry><entry>This provides socket connectivity.</entry>
</row>
</thead>

<tfoot>
<row>
  <entry spanname='s1' align='left'>Notes based on the code as of Mon Apr 5 21:38:06 2010 -0400.</entry>
</row>
</tfoot>

<tbody>
<row>
  <entry><function>int netlib_connectsock(const char *host, const char *service, const char *protocol)</function></entry>
  <entry><para>This attempts to connect the to nominated service on
  the nominated host using the nominated protocol. On success, the
  return value is the socket number. On error, an appropriate system
  defined error code is returned.</para></entry>
</row>
<row>
  <entry><function>char *sock2ip(int fd)</function></entry>
  <entry><para>This makes a call to <function>getpeername</function>
  using the supplied fd. On success, the returned string is the ip
  address in dotted notation. On error, "&lt;unknown&gt;" is
  returned.</para></entry>
</row>
</tbody>

</tgroup>
</informaltable>
</sect1>