diff options
Diffstat (limited to 'PACE/pace/posix/inet.h')
-rw-r--r-- | PACE/pace/posix/inet.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/PACE/pace/posix/inet.h b/PACE/pace/posix/inet.h new file mode 100644 index 00000000000..9543654f143 --- /dev/null +++ b/PACE/pace/posix/inet.h @@ -0,0 +1,47 @@ +/* $Id$ + + * ============================================================================ + * + * = LIBRARY + * pace + * + * = FILENAME + * pace/posix/inet.h + * + * = AUTHOR + * Luther Baker + * + * ============================================================================ */ + +#ifndef PACE_ARPA_INET_H +#define PACE_ARPA_INET_H + +#include <arpa/inet.h> + +#if defined (PACE_HAS_CPLUSPLUS) +extern "C" { +#endif /* PACE_HAS_CPLUSPLUS */ + + PACE_INLINE unsigned long pace_inet_addr (const char * cp); + + PACE_INLINE unsigned long pace_inet_network (const char * cp); + + PACE_INLINE struct in_addr pace_inet_makeaddr (const int net, const int lna); + + PACE_INLINE int pace_inet_lnaof (const struct in_addr in); + + PACE_INLINE int pace_inet_netof (const struct in_addr in); + + PACE_INLINE char * pace_inet_ntoa (const struct in_addr in); + + PACE_INLINE int pace_inet_aton (const char * str, struct in_addr * addr); + +#if defined (PACE_HAS_CPLUSPLUS) +} +#endif /* PACE_HAS_CPLUSPLUS */ + +#if defined (PACE_HAS_INLINE) +# include "pace/posix/inet.inl" +#endif /* PACE_HAS_INLINE */ + +#endif /* PACE_ARPA_INET_H */ |