Initial Patch of Auction House bot rev. 135
[auctionmangos.git] / dep / ACE_wrappers / ace / os_include / arpa / os_inet.h
blob090484d285015dba0b4dd322f4840b9b0f36a29c
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file os_inet.h
7 * definitions for internet operations
9 * $Id: os_inet.h 80826 2008-03-04 14:51:23Z wotte $
11 * @author Don Hinton <dhinton@dresystems.com>
12 * @author This code was originally in various places including ace/OS.h.
14 //=============================================================================
16 #ifndef ACE_OS_INCLUDE_ARPA_OS_INET_H
17 #define ACE_OS_INCLUDE_ARPA_OS_INET_H
19 #include /**/ "ace/pre.h"
21 #include /**/ "ace/config-all.h"
23 #if !defined (ACE_LACKS_PRAGMA_ONCE)
24 # pragma once
25 #endif /* ACE_LACKS_PRAGMA_ONCE */
27 #include "ace/os_include/netinet/os_in.h"
29 #if !defined (ACE_LACKS_ARPA_INET_H)
30 extern "C" {
31 # include /**/ <arpa/inet.h>
33 #endif /* !ACE_LACKS_ARPA_INET_H */
35 #if defined (ACE_VXWORKS)
36 # include /**/ <inetLib.h>
37 #endif /* ACE_VXWORKS */
39 /**
40 * In some environments it is useful to swap the bytes on write, for
41 * instance: a fast server can be feeding a lot of slow clients that
42 * happen to have the wrong byte order.
43 * Because this is a rarely used feature we disable it by default to
44 * minimize footprint.
45 * This macro enables the functionality, but we still need a way to
46 * activate it on a per-connection basis.
48 // #define ACE_ENABLE_SWAP_ON_WRITE
50 /**
51 * In some environements we never need to swap bytes when reading, for
52 * instance embebbed systems (such as avionics) or homogenous
53 * networks.
54 * Setting this macro disables the capabilities to demarshall streams
55 * in the wrong byte order.
57 // #define ACE_DISABLE_SWAP_ON_READ
59 // Place all additions (especially function declarations) within extern "C" {}
60 #ifdef __cplusplus
61 extern "C"
63 #endif /* __cplusplus */
65 #if defined (ACE_LACKS_INET_ATON_PROTOTYPE)
66 int inet_aton (const char *, struct in_addr *);
67 #endif /* ACE_LACKS_INET_ATON_PROTOTYPE */
69 #ifdef __cplusplus
71 #endif /* __cplusplus */
73 #include /**/ "ace/post.h"
74 #endif /* ACE_OS_INCLUDE_ARPA_OS_INET_H */