00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef ACE_OS_INCLUDE_OS_NETDB_H
00017 #define ACE_OS_INCLUDE_OS_NETDB_H
00018
00019 #include "ace/pre.h"
00020
00021 #include "ace/config-all.h"
00022
00023 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00024 # pragma once
00025 #endif
00026
00027 #include "ace/os_include/netinet/os_in.h"
00028 #include "ace/os_include/os_limits.h"
00029
00030 #if !defined (ACE_LACKS_NETDB_H)
00031 # if defined (ACE_HAS_STL_QUEUE_CONFLICT)
00032 # define queue _Queue_
00033 # endif
00034 extern "C" {
00035 # include <netdb.h>
00036 }
00037 # if defined (ACE_HAS_STL_QUEUE_CONFLICT)
00038 # undef queue
00039 # endif
00040 #endif
00041
00042 #if defined (ACE_VXWORKS) && (ACE_VXWORKS < 0x620)
00043 # include <hostLib.h>
00044 #endif
00045
00046
00047 #ifdef __cplusplus
00048 extern "C"
00049 {
00050 #endif
00051
00052 #if defined (ACE_HAS_STRUCT_NETDB_DATA)
00053 typedef char ACE_HOSTENT_DATA[sizeof(struct hostent_data)];
00054 typedef char ACE_SERVENT_DATA[sizeof(struct servent_data)];
00055 typedef char ACE_PROTOENT_DATA[sizeof(struct protoent_data)];
00056 #else
00057 # if !defined ACE_HOSTENT_DATA_SIZE
00058 # define ACE_HOSTENT_DATA_SIZE (4*1024)
00059 # endif
00060 # if !defined ACE_SERVENT_DATA_SIZE
00061 # define ACE_SERVENT_DATA_SIZE (4*1024)
00062 # endif
00063 # if !defined ACE_PROTOENT_DATA_SIZE
00064 # define ACE_PROTOENT_DATA_SIZE (2*1024)
00065 # endif
00066 typedef char ACE_HOSTENT_DATA[ACE_HOSTENT_DATA_SIZE];
00067 typedef char ACE_SERVENT_DATA[ACE_SERVENT_DATA_SIZE];
00068 typedef char ACE_PROTOENT_DATA[ACE_PROTOENT_DATA_SIZE];
00069 #endif
00070
00071 # if !defined(MAXHOSTNAMELEN)
00072 # define MAXHOSTNAMELEN HOST_NAME_MAX
00073 # endif
00074
00075 #ifdef __cplusplus
00076 }
00077 #endif
00078
00079 #include "ace/post.h"
00080 #endif