Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

added enet

File size: 3.7 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 Source File</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</h1><a href="unix_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
22<a name="l00005"></a>00005 <span class="preprocessor">#ifndef __ENET_UNIX_H__</span>
23<a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define __ENET_UNIX_H__</span>
24<a name="l00007"></a>00007 <span class="preprocessor"></span>
25<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
26<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;sys/types.h&gt;</span>
27<a name="l00010"></a>00010 <span class="preprocessor">#include &lt;netinet/in.h&gt;</span>
28<a name="l00011"></a>00011
29<a name="l00012"></a>00012 <span class="keyword">typedef</span> <span class="keywordtype">int</span> ENetSocket;
30<a name="l00013"></a>00013
31<a name="l00014"></a>00014 <span class="keyword">enum</span>
32<a name="l00015"></a>00015 {
33<a name="l00016"></a>00016     ENET_SOCKET_NULL = -1
34<a name="l00017"></a>00017 };
35<a name="l00018"></a>00018
36<a name="l00019"></a><a class="code" href="unix_8h.html#4ede48cf4612d407ac6b6f064e3117bc">00019</a> <span class="preprocessor">#define ENET_HOST_TO_NET_16(value) (htons (value)) </span>
37<a name="l00020"></a><a class="code" href="unix_8h.html#7bbe3d7e47fd45dda29c0e4a94abe131">00020</a> <span class="preprocessor">#define ENET_HOST_TO_NET_32(value) (htonl (value)) </span>
38<a name="l00022"></a><a class="code" href="unix_8h.html#75c464a36d2ebb47c6034a10c56eb4d1">00022</a> <span class="preprocessor">#define ENET_NET_TO_HOST_16(value) (ntohs (value)) </span>
39<a name="l00023"></a><a class="code" href="unix_8h.html#6fdfe9a0019e06da5931f10263f14d59">00023</a> <span class="preprocessor">#define ENET_NET_TO_HOST_32(value) (ntohl (value)) </span>
40<a name="l00025"></a>00025 <span class="preprocessor">typedef struct</span>
41<a name="l00026"></a>00026 <span class="preprocessor"></span>{
42<a name="l00027"></a>00027     <span class="keywordtype">void</span> * data;
43<a name="l00028"></a>00028     size_t dataLength;
44<a name="l00029"></a>00029 } ENetBuffer;
45<a name="l00030"></a>00030
46<a name="l00031"></a>00031 <span class="preprocessor">#define ENET_CALLBACK</span>
47<a name="l00032"></a>00032 <span class="preprocessor"></span>
48<a name="l00033"></a>00033 <span class="preprocessor">#define ENET_API extern</span>
49<a name="l00034"></a>00034 <span class="preprocessor"></span>
50<a name="l00035"></a>00035 <span class="preprocessor">#endif </span><span class="comment">/* __ENET_UNIX_H__ */</span>
51<a name="l00036"></a>00036
52</pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Jun 6 14:33:50 2007 for enet by&nbsp;
53<a href="http://www.doxygen.org/index.html">
54<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address>
55</body>
56</html>
Note: See TracBrowser for help on using the repository browser.