socket_8h.html
3.92 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>xmlrpc: include/socket.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.8 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File List</span></a></li>
<li><a href="globals.html"><span>Globals</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>include/socket.h File Reference</h1><code>#include <arpa/inet.h></code><br>
<p>
<a href="socket_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="socket_8h.html#44dc8ffaedb1d6f7d4663f5cecaf4e70">initServerSocket</a> (in_port_t port, int backlog)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="socket_8h.html#f09ba488c48f40f8d1f133a4441deb25">acceptConnection</a> (int servSock, char remoteAddr[16])</td></tr>
</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="f09ba488c48f40f8d1f133a4441deb25"></a><!-- doxytag: member="socket.h::acceptConnection" ref="f09ba488c48f40f8d1f133a4441deb25" args="(int servSock, char remoteAddr[16])" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int acceptConnection </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>servSock</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char </td>
<td class="paramname"> <em>remoteAddr</em>[16]</td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>Definition at line <a class="el" href="socket_8c-source.html#l00053">53</a> of file <a class="el" href="socket_8c-source.html">socket.c</a>.</p>
</div>
</div><p>
<a class="anchor" name="44dc8ffaedb1d6f7d4663f5cecaf4e70"></a><!-- doxytag: member="socket.h::initServerSocket" ref="44dc8ffaedb1d6f7d4663f5cecaf4e70" args="(in_port_t port, int backlog)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int initServerSocket </td>
<td>(</td>
<td class="paramtype">in_port_t </td>
<td class="paramname"> <em>port</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>backlog</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<p>Definition at line <a class="el" href="socket_8c-source.html#l00015">15</a> of file <a class="el" href="socket_8c-source.html">socket.c</a>.</p>
</div>
</div><p>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Oct 10 01:24:35 2010 for xmlrpc by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>