PageRenderTime 27ms CodeModel.GetById 14ms app.highlight 9ms RepoModel.GetById 2ms app.codeStats 0ms

/src/middleware/enet/docs/unix_8h.html

https://bitbucket.org/vivkin/gam3b00bs/
HTML | 95 lines | 92 code | 2 blank | 1 comment | 0 complexity | 610b809fea71d46931eecf2cec467f45 MD5 | raw file
 1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 2<html xmlns="http://www.w3.org/1999/xhtml">
 3<head>
 4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
 5<title>enet: unix.h File Reference</title>
 6<link href="tabs.css" rel="stylesheet" type="text/css"/>
 7<link href="doxygen.css" rel="stylesheet" type="text/css"/>
 8</head>
 9<body>
10<!-- Generated by Doxygen 1.7.1 -->
11<div class="navigation" id="top">
12  <div class="tabs">
13    <ul class="tablist">
14      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
15      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
16      <li><a href="modules.html"><span>Modules</span></a></li>
17      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
18      <li class="current"><a href="files.html"><span>Files</span></a></li>
19    </ul>
20  </div>
21  <div class="tabs2">
22    <ul class="tablist">
23      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
24      <li><a href="globals.html"><span>Globals</span></a></li>
25    </ul>
26  </div>
27</div>
28<div class="header">
29  <div class="summary">
30<a href="#nested-classes">Data Structures</a> &#124;
31<a href="#define-members">Defines</a> &#124;
32<a href="#typedef-members">Typedefs</a> &#124;
33<a href="#enum-members">Enumerations</a>  </div>
34  <div class="headertitle">
35<h1>unix.h File Reference</h1>  </div>
36</div>
37<div class="contents">
38
39<p>ENet Unix header.  
40<a href="#_details">More...</a></p>
41<code>#include &lt;stdlib.h&gt;</code><br/>
42<code>#include &lt;sys/time.h&gt;</code><br/>
43<code>#include &lt;sys/types.h&gt;</code><br/>
44<code>#include &lt;netinet/in.h&gt;</code><br/>
45<code>#include &lt;unistd.h&gt;</code><br/>
46
47<p><a href="unix_8h_source.html">Go to the source code of this file.</a></p>
48<table class="memberdecls">
49<tr><td colspan="2"><h2><a name="nested-classes"></a>
50Data Structures</h2></td></tr>
51<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structENetBuffer.html">ENetBuffer</a></td></tr>
52<tr><td colspan="2"><h2><a name="define-members"></a>
53Defines</h2></td></tr>
54<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4ede48cf4612d407ac6b6f064e3117bc"></a><!-- doxytag: member="unix.h::ENET_HOST_TO_NET_16" ref="a4ede48cf4612d407ac6b6f064e3117bc" args="(value)" -->
55#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="unix_8h.html#a4ede48cf4612d407ac6b6f064e3117bc">ENET_HOST_TO_NET_16</a>(value)&nbsp;&nbsp;&nbsp;(htons (value))</td></tr>
56<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">macro that converts host to net byte-order of a 16-bit value <br/></td></tr>
57<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7bbe3d7e47fd45dda29c0e4a94abe131"></a><!-- doxytag: member="unix.h::ENET_HOST_TO_NET_32" ref="a7bbe3d7e47fd45dda29c0e4a94abe131" args="(value)" -->
58#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="unix_8h.html#a7bbe3d7e47fd45dda29c0e4a94abe131">ENET_HOST_TO_NET_32</a>(value)&nbsp;&nbsp;&nbsp;(htonl (value))</td></tr>
59<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">macro that converts host to net byte-order of a 32-bit value <br/></td></tr>
60<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a75c464a36d2ebb47c6034a10c56eb4d1"></a><!-- doxytag: member="unix.h::ENET_NET_TO_HOST_16" ref="a75c464a36d2ebb47c6034a10c56eb4d1" args="(value)" -->
61#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="unix_8h.html#a75c464a36d2ebb47c6034a10c56eb4d1">ENET_NET_TO_HOST_16</a>(value)&nbsp;&nbsp;&nbsp;(ntohs (value))</td></tr>
62<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">macro that converts net to host byte-order of a 16-bit value <br/></td></tr>
63<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6fdfe9a0019e06da5931f10263f14d59"></a><!-- doxytag: member="unix.h::ENET_NET_TO_HOST_32" ref="a6fdfe9a0019e06da5931f10263f14d59" args="(value)" -->
64#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="unix_8h.html#a6fdfe9a0019e06da5931f10263f14d59">ENET_NET_TO_HOST_32</a>(value)&nbsp;&nbsp;&nbsp;(ntohl (value))</td></tr>
65<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">macro that converts net to host byte-order of a 32-bit value <br/></td></tr>
66<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a62eafc38d284aacbbd8f4104fdcd0cc2"></a><!-- doxytag: member="unix.h::ENET_CALLBACK" ref="a62eafc38d284aacbbd8f4104fdcd0cc2" args="" -->
67#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>ENET_CALLBACK</b></td></tr>
68<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a687ffc6acf6d30c9ecde1b2ce209879c"></a><!-- doxytag: member="unix.h::ENET_API" ref="a687ffc6acf6d30c9ecde1b2ce209879c" args="" -->
69#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>ENET_API</b>&nbsp;&nbsp;&nbsp;extern</td></tr>
70<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ada38c37a943326446cb4ba8be0b27469"></a><!-- doxytag: member="unix.h::ENET_SOCKETSET_EMPTY" ref="ada38c37a943326446cb4ba8be0b27469" args="(sockset)" -->
71#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>ENET_SOCKETSET_EMPTY</b>(sockset)&nbsp;&nbsp;&nbsp;FD_ZERO (&amp; (sockset))</td></tr>
72<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad5003a9b55c900605b6a81ea37d382ee"></a><!-- doxytag: member="unix.h::ENET_SOCKETSET_ADD" ref="ad5003a9b55c900605b6a81ea37d382ee" args="(sockset, socket)" -->
73#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>ENET_SOCKETSET_ADD</b>(sockset, socket)&nbsp;&nbsp;&nbsp;FD_SET (socket, &amp; (sockset))</td></tr>
74<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3316bc3b3db9371322a549d8f87bc30a"></a><!-- doxytag: member="unix.h::ENET_SOCKETSET_REMOVE" ref="a3316bc3b3db9371322a549d8f87bc30a" args="(sockset, socket)" -->
75#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>ENET_SOCKETSET_REMOVE</b>(sockset, socket)&nbsp;&nbsp;&nbsp;FD_CLEAR (socket, &amp; (sockset))</td></tr>
76<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a455101a0de016782efa63810d47ee898"></a><!-- doxytag: member="unix.h::ENET_SOCKETSET_CHECK" ref="a455101a0de016782efa63810d47ee898" args="(sockset, socket)" -->
77#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>ENET_SOCKETSET_CHECK</b>(sockset, socket)&nbsp;&nbsp;&nbsp;FD_ISSET (socket, &amp; (sockset))</td></tr>
78<tr><td colspan="2"><h2><a name="typedef-members"></a>
79Typedefs</h2></td></tr>
80<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a22cf07f75b30cc43ecf9febbb244b537"></a><!-- doxytag: member="unix.h::ENetSocket" ref="a22cf07f75b30cc43ecf9febbb244b537" args="" -->
81typedef int&nbsp;</td><td class="memItemRight" valign="bottom"><b>ENetSocket</b></td></tr>
82<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab8c03b0a5df283d329adf245e1f96622"></a><!-- doxytag: member="unix.h::ENetSocketSet" ref="ab8c03b0a5df283d329adf245e1f96622" args="" -->
83typedef fd_set&nbsp;</td><td class="memItemRight" valign="bottom"><b>ENetSocketSet</b></td></tr>
84<tr><td colspan="2"><h2><a name="enum-members"></a>
85Enumerations</h2></td></tr>
86<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom">{ <b>ENET_SOCKET_NULL</b> =  -1
87 }</td></tr>
88</table>
89<hr/><a name="_details"></a><h2>Detailed Description</h2>
90</div>
91<hr class="footer"/><address class="footer"><small>Generated on Wed Feb 9 2011 21:31:05 for enet by&nbsp;
92<a href="http://www.doxygen.org/index.html">
93<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
94</body>
95</html>