00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file OS_NS_arpa_inet.h 00006 * 00007 * OS_NS_arpa_inet.h,v 1.6 2006/05/16 13:01:02 jwillemsen Exp 00008 * 00009 * @author Douglas C. Schmidt <schmidt@cs.wustl.edu> 00010 * @author Jesper S. M|ller<stophph@diku.dk> 00011 * @author and a cast of thousands... 00012 * 00013 * Originally in OS.h. 00014 */ 00015 //============================================================================= 00016 00017 #ifndef ACE_OS_NS_ARPA_INET_H 00018 # define ACE_OS_NS_ARPA_INET_H 00019 00020 # include /**/ "ace/pre.h" 00021 00022 # include "ace/config-all.h" 00023 00024 # if !defined (ACE_LACKS_PRAGMA_ONCE) 00025 # pragma once 00026 # endif /* ACE_LACKS_PRAGMA_ONCE */ 00027 00028 #include "ace/os_include/arpa/os_inet.h" 00029 #include "ace/ACE_export.h" 00030 00031 #if defined (ACE_EXPORT_MACRO) 00032 # undef ACE_EXPORT_MACRO 00033 #endif 00034 #define ACE_EXPORT_MACRO ACE_Export 00035 00036 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00037 00038 namespace ACE_OS { 00039 00040 ACE_NAMESPACE_INLINE_FUNCTION 00041 unsigned long inet_addr (const char *name); 00042 00043 extern ACE_Export 00044 int inet_aton (const char *strptr, 00045 struct in_addr *addr); 00046 00047 ACE_NAMESPACE_INLINE_FUNCTION 00048 char *inet_ntoa (const struct in_addr addr); 00049 00050 ACE_NAMESPACE_INLINE_FUNCTION 00051 const char *inet_ntop (int family, 00052 const void *addrptr, 00053 char *strptr, 00054 size_t len); 00055 00056 ACE_NAMESPACE_INLINE_FUNCTION 00057 int inet_pton (int family, 00058 const char *strptr, 00059 void *addrptr); 00060 00061 } /* namespace ACE_OS */ 00062 00063 ACE_END_VERSIONED_NAMESPACE_DECL 00064 00065 # if defined (ACE_HAS_INLINED_OSCALLS) 00066 # if defined (ACE_INLINE) 00067 # undef ACE_INLINE 00068 # endif /* ACE_INLINE */ 00069 # define ACE_INLINE inline 00070 # include "ace/OS_NS_arpa_inet.inl" 00071 # endif /* ACE_HAS_INLINED_OSCALLS */ 00072 00073 # include /**/ "ace/post.h" 00074 #endif /* ACE_OS_NS_ARPA_INET_H */