Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/enet-1.1/docs/html/unix_8h.html @ 13

Last change on this file since 13 was 13, checked in by landauf, 17 years ago

added enet

File size: 5.2 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3<title>enet: unix.h File Reference</title>
4<link href="doxygen.css" rel="stylesheet" type="text/css">
5<link href="tabs.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.5.1 -->
8<div class="tabs">
9  <ul>
10    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
11    <li><a href="modules.html"><span>Modules</span></a></li>
12    <li><a href="classes.html"><span>Data&nbsp;Structures</span></a></li>
13    <li id="current"><a href="files.html"><span>Files</span></a></li>
14    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
15  </ul></div>
16<div class="tabs">
17  <ul>
18    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
19    <li><a href="globals.html"><span>Globals</span></a></li>
20  </ul></div>
21<h1>unix.h File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
22
23<p>
24<code>#include &lt;stdlib.h&gt;</code><br>
25<code>#include &lt;sys/types.h&gt;</code><br>
26<code>#include &lt;netinet/in.h&gt;</code><br>
27
28<p>
29<a href="unix_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
30<tr><td></td></tr>
31<tr><td colspan="2"><br><h2>Data Structures</h2></td></tr>
32<tr><td class="memItemLeft" nowrap align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><b>ENetBuffer</b></td></tr>
33
34<tr><td colspan="2"><br><h2>Defines</h2></td></tr>
35<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4ede48cf4612d407ac6b6f064e3117bc"></a><!-- doxytag: member="unix.h::ENET_HOST_TO_NET_16" ref="4ede48cf4612d407ac6b6f064e3117bc" args="(value)" -->
36#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="unix_8h.html#4ede48cf4612d407ac6b6f064e3117bc">ENET_HOST_TO_NET_16</a>(value)&nbsp;&nbsp;&nbsp;(htons (value))</td></tr>
37
38<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>
39<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7bbe3d7e47fd45dda29c0e4a94abe131"></a><!-- doxytag: member="unix.h::ENET_HOST_TO_NET_32" ref="7bbe3d7e47fd45dda29c0e4a94abe131" args="(value)" -->
40#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="unix_8h.html#7bbe3d7e47fd45dda29c0e4a94abe131">ENET_HOST_TO_NET_32</a>(value)&nbsp;&nbsp;&nbsp;(htonl (value))</td></tr>
41
42<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>
43<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="75c464a36d2ebb47c6034a10c56eb4d1"></a><!-- doxytag: member="unix.h::ENET_NET_TO_HOST_16" ref="75c464a36d2ebb47c6034a10c56eb4d1" args="(value)" -->
44#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="unix_8h.html#75c464a36d2ebb47c6034a10c56eb4d1">ENET_NET_TO_HOST_16</a>(value)&nbsp;&nbsp;&nbsp;(ntohs (value))</td></tr>
45
46<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>
47<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6fdfe9a0019e06da5931f10263f14d59"></a><!-- doxytag: member="unix.h::ENET_NET_TO_HOST_32" ref="6fdfe9a0019e06da5931f10263f14d59" args="(value)" -->
48#define&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="unix_8h.html#6fdfe9a0019e06da5931f10263f14d59">ENET_NET_TO_HOST_32</a>(value)&nbsp;&nbsp;&nbsp;(ntohl (value))</td></tr>
49
50<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>
51<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62eafc38d284aacbbd8f4104fdcd0cc2"></a><!-- doxytag: member="unix.h::ENET_CALLBACK" ref="62eafc38d284aacbbd8f4104fdcd0cc2" args="" -->
52#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>ENET_CALLBACK</b></td></tr>
53
54<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="687ffc6acf6d30c9ecde1b2ce209879c"></a><!-- doxytag: member="unix.h::ENET_API" ref="687ffc6acf6d30c9ecde1b2ce209879c" args="" -->
55#define&nbsp;</td><td class="memItemRight" valign="bottom"><b>ENET_API</b>&nbsp;&nbsp;&nbsp;extern</td></tr>
56
57<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
58<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="22cf07f75b30cc43ecf9febbb244b537"></a><!-- doxytag: member="unix.h::ENetSocket" ref="22cf07f75b30cc43ecf9febbb244b537" args="" -->
59typedef int&nbsp;</td><td class="memItemRight" valign="bottom"><b>ENetSocket</b></td></tr>
60
61<tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
62<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom">{ <b>ENET_SOCKET_NULL</b> =  -1
63 }</td></tr>
64
65</table>
66<hr size="1"><address style="align: right;"><small>Generated on Wed Jun 6 14:33:50 2007 for enet by&nbsp;
67<a href="http://www.doxygen.org/index.html">
68<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
69</body>
70</html>
Note: See TracBrowser for help on using the repository browser.