[13] | 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 Page</span></a></li> |
---|
| 11 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
| 12 | <li><a href="classes.html"><span>Data 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 Pages</span></a></li> |
---|
| 15 | </ul></div> |
---|
| 16 | <div class="tabs"> |
---|
| 17 | <ul> |
---|
| 18 | <li><a href="files.html"><span>File 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 <stdlib.h></code><br> |
---|
| 25 | <code>#include <sys/types.h></code><br> |
---|
| 26 | <code>#include <netinet/in.h></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 </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 </td><td class="memItemRight" valign="bottom"><a class="el" href="unix_8h.html#4ede48cf4612d407ac6b6f064e3117bc">ENET_HOST_TO_NET_16</a>(value) (htons (value))</td></tr> |
---|
| 37 | |
---|
| 38 | <tr><td class="mdescLeft"> </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 </td><td class="memItemRight" valign="bottom"><a class="el" href="unix_8h.html#7bbe3d7e47fd45dda29c0e4a94abe131">ENET_HOST_TO_NET_32</a>(value) (htonl (value))</td></tr> |
---|
| 41 | |
---|
| 42 | <tr><td class="mdescLeft"> </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 </td><td class="memItemRight" valign="bottom"><a class="el" href="unix_8h.html#75c464a36d2ebb47c6034a10c56eb4d1">ENET_NET_TO_HOST_16</a>(value) (ntohs (value))</td></tr> |
---|
| 45 | |
---|
| 46 | <tr><td class="mdescLeft"> </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 </td><td class="memItemRight" valign="bottom"><a class="el" href="unix_8h.html#6fdfe9a0019e06da5931f10263f14d59">ENET_NET_TO_HOST_32</a>(value) (ntohl (value))</td></tr> |
---|
| 49 | |
---|
| 50 | <tr><td class="mdescLeft"> </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 </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 </td><td class="memItemRight" valign="bottom"><b>ENET_API</b> 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="" --> |
---|
| 59 | typedef int </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 </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 |
---|
| 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> |
---|