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.c 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.c File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2> |
---|
22 | |
---|
23 | <p> |
---|
24 | <code>#include <sys/types.h></code><br> |
---|
25 | <code>#include <sys/socket.h></code><br> |
---|
26 | <code>#include <sys/ioctl.h></code><br> |
---|
27 | <code>#include <sys/time.h></code><br> |
---|
28 | <code>#include <arpa/inet.h></code><br> |
---|
29 | <code>#include <netdb.h></code><br> |
---|
30 | <code>#include <unistd.h></code><br> |
---|
31 | <code>#include <string.h></code><br> |
---|
32 | <code>#include <errno.h></code><br> |
---|
33 | <code>#include <<a class="el" href="time_8h-source.html">time.h</a>></code><br> |
---|
34 | <code>#include "<a class="el" href="enet_8h-source.html">enet/enet.h</a>"</code><br> |
---|
35 | <table border="0" cellpadding="0" cellspacing="0"> |
---|
36 | <tr><td></td></tr> |
---|
37 | <tr><td colspan="2"><br><h2>Defines</h2></td></tr> |
---|
38 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0dc3ac14ddf12c81cb53d3e662ad277f"></a><!-- doxytag: member="unix.c::ENET_BUILDING_LIB" ref="0dc3ac14ddf12c81cb53d3e662ad277f" args="" --> |
---|
39 | #define </td><td class="memItemRight" valign="bottom"><b>ENET_BUILDING_LIB</b> 1</td></tr> |
---|
40 | |
---|
41 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9f55d0e90dc8cc6b2287312435cdde48"></a><!-- doxytag: member="unix.c::MSG_NOSIGNAL" ref="9f55d0e90dc8cc6b2287312435cdde48" args="" --> |
---|
42 | #define </td><td class="memItemRight" valign="bottom"><b>MSG_NOSIGNAL</b> 0</td></tr> |
---|
43 | |
---|
44 | <tr><td colspan="2"><br><h2>Typedefs</h2></td></tr> |
---|
45 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6b82106923cc13b3a9734520ecc29514"></a><!-- doxytag: member="unix.c::socklen_t" ref="6b82106923cc13b3a9734520ecc29514" args="" --> |
---|
46 | typedef int </td><td class="memItemRight" valign="bottom"><b>socklen_t</b></td></tr> |
---|
47 | |
---|
48 | <tr><td colspan="2"><br><h2>Functions</h2></td></tr> |
---|
49 | <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__global.html#g67fa85c46a1dc91f968f25fc0637c897">enet_initialize</a> (void)</td></tr> |
---|
50 | |
---|
51 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Initializes ENet globally. <a href="group__global.html#g67fa85c46a1dc91f968f25fc0637c897"></a><br></td></tr> |
---|
52 | <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__global.html#gd62cf417e08a2b98d48572a336f7db25">enet_deinitialize</a> (void)</td></tr> |
---|
53 | |
---|
54 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Shuts down ENet globally. <a href="group__global.html#gd62cf417e08a2b98d48572a336f7db25"></a><br></td></tr> |
---|
55 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="unix_8c.html#26eeed004fe8fa39b0fb5b18efbd4d64">enet_time_get</a> (void)</td></tr> |
---|
56 | |
---|
57 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the wall-time in milliseconds. <a href="#26eeed004fe8fa39b0fb5b18efbd4d64"></a><br></td></tr> |
---|
58 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f7346c361d30381752ac89475a5e1fd5"></a><!-- doxytag: member="unix.c::enet_time_set" ref="f7346c361d30381752ac89475a5e1fd5" args="(enet_uint32 newTimeBase)" --> |
---|
59 | void </td><td class="memItemRight" valign="bottom"><a class="el" href="unix_8c.html#f7346c361d30381752ac89475a5e1fd5">enet_time_set</a> (<a class="el" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> newTimeBase)</td></tr> |
---|
60 | |
---|
61 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the current wall-time in milliseconds. <br></td></tr> |
---|
62 | <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Address.html#g32a6ae1ed3d7704858f237688e7384ee">enet_address_set_host</a> (<a class="el" href="struct__ENetAddress.html">ENetAddress</a> *address, const char *name)</td></tr> |
---|
63 | |
---|
64 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Attempts to resolve the host named by the parameter hostName and sets the host field in the address parameter if successful. <a href="group__Address.html#g32a6ae1ed3d7704858f237688e7384ee"></a><br></td></tr> |
---|
65 | <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Address.html#g770507a74d2e98334eebdadd9c681f69">enet_address_get_host_ip</a> (const <a class="el" href="struct__ENetAddress.html">ENetAddress</a> *address, char *name, size_t nameLength)</td></tr> |
---|
66 | |
---|
67 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Gives the printable form of the ip address specified in the address parameter. <a href="group__Address.html#g770507a74d2e98334eebdadd9c681f69"></a><br></td></tr> |
---|
68 | <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__Address.html#g55282b3074cb409544f6aa72a67582ab">enet_address_get_host</a> (const <a class="el" href="struct__ENetAddress.html">ENetAddress</a> *address, char *name, size_t nameLength)</td></tr> |
---|
69 | |
---|
70 | <tr><td class="mdescLeft"> </td><td class="mdescRight">Attempts to do a reverse lookup of the host field in the address parameter. <a href="group__Address.html#g55282b3074cb409544f6aa72a67582ab"></a><br></td></tr> |
---|
71 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g77ebdc22775e513b9d555865deb9abb7"></a><!-- doxytag: member="unix.c::enet_socket_create" ref="g77ebdc22775e513b9d555865deb9abb7" args="(ENetSocketType type, const ENetAddress *address)" --> |
---|
72 | ENetSocket </td><td class="memItemRight" valign="bottom"><b>enet_socket_create</b> (ENetSocketType type, const <a class="el" href="struct__ENetAddress.html">ENetAddress</a> *address)</td></tr> |
---|
73 | |
---|
74 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gc657e370f1585ce2e0f42b35f28b0d29"></a><!-- doxytag: member="unix.c::enet_socket_connect" ref="gc657e370f1585ce2e0f42b35f28b0d29" args="(ENetSocket socket, const ENetAddress *address)" --> |
---|
75 | int </td><td class="memItemRight" valign="bottom"><b>enet_socket_connect</b> (ENetSocket socket, const <a class="el" href="struct__ENetAddress.html">ENetAddress</a> *address)</td></tr> |
---|
76 | |
---|
77 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="gaf0f06f15ce99ba362250d6c5768866e"></a><!-- doxytag: member="unix.c::enet_socket_accept" ref="gaf0f06f15ce99ba362250d6c5768866e" args="(ENetSocket socket, ENetAddress *address)" --> |
---|
78 | ENetSocket </td><td class="memItemRight" valign="bottom"><b>enet_socket_accept</b> (ENetSocket socket, <a class="el" href="struct__ENetAddress.html">ENetAddress</a> *address)</td></tr> |
---|
79 | |
---|
80 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g7b4933cda2967776397c23538cacadea"></a><!-- doxytag: member="unix.c::enet_socket_destroy" ref="g7b4933cda2967776397c23538cacadea" args="(ENetSocket socket)" --> |
---|
81 | void </td><td class="memItemRight" valign="bottom"><b>enet_socket_destroy</b> (ENetSocket socket)</td></tr> |
---|
82 | |
---|
83 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g7b31df6015f1f2b4850dfbf63ccc10ac"></a><!-- doxytag: member="unix.c::enet_socket_send" ref="g7b31df6015f1f2b4850dfbf63ccc10ac" args="(ENetSocket socket, const ENetAddress *address, const ENetBuffer *buffers, size_t bufferCount)" --> |
---|
84 | int </td><td class="memItemRight" valign="bottom"><b>enet_socket_send</b> (ENetSocket socket, const <a class="el" href="struct__ENetAddress.html">ENetAddress</a> *address, const ENetBuffer *buffers, size_t bufferCount)</td></tr> |
---|
85 | |
---|
86 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g119dba4de09aca16bd936953c8bc9853"></a><!-- doxytag: member="unix.c::enet_socket_receive" ref="g119dba4de09aca16bd936953c8bc9853" args="(ENetSocket socket, ENetAddress *address, ENetBuffer *buffers, size_t bufferCount)" --> |
---|
87 | int </td><td class="memItemRight" valign="bottom"><b>enet_socket_receive</b> (ENetSocket socket, <a class="el" href="struct__ENetAddress.html">ENetAddress</a> *address, ENetBuffer *buffers, size_t bufferCount)</td></tr> |
---|
88 | |
---|
89 | <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="g06158e2adcfa90f18c9fdd13b7101231"></a><!-- doxytag: member="unix.c::enet_socket_wait" ref="g06158e2adcfa90f18c9fdd13b7101231" args="(ENetSocket socket, enet_uint32 *condition, enet_uint32 timeout)" --> |
---|
90 | int </td><td class="memItemRight" valign="bottom"><b>enet_socket_wait</b> (ENetSocket socket, <a class="el" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> *condition, <a class="el" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> timeout)</td></tr> |
---|
91 | |
---|
92 | </table> |
---|
93 | <hr><h2>Function Documentation</h2> |
---|
94 | <a class="anchor" name="26eeed004fe8fa39b0fb5b18efbd4d64"></a><!-- doxytag: member="unix.c::enet_time_get" ref="26eeed004fe8fa39b0fb5b18efbd4d64" args="(void)" --> |
---|
95 | <div class="memitem"> |
---|
96 | <div class="memproto"> |
---|
97 | <table class="memname"> |
---|
98 | <tr> |
---|
99 | <td class="memname"><a class="el" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> enet_time_get </td> |
---|
100 | <td>(</td> |
---|
101 | <td class="paramtype">void </td> |
---|
102 | <td class="paramname"> </td> |
---|
103 | <td> ) </td> |
---|
104 | <td width="100%"></td> |
---|
105 | </tr> |
---|
106 | </table> |
---|
107 | </div> |
---|
108 | <div class="memdoc"> |
---|
109 | |
---|
110 | <p> |
---|
111 | Its initial value is unspecified unless otherwise set. |
---|
112 | </div> |
---|
113 | </div><p> |
---|
114 | <hr size="1"><address style="align: right;"><small>Generated on Wed Jun 6 14:33:50 2007 for enet by |
---|
115 | <a href="http://www.doxygen.org/index.html"> |
---|
116 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> |
---|
117 | </body> |
---|
118 | </html> |
---|