2002-07-09 16:24:59 +04:00
|
|
|
/* arpa/inet.h */
|
|
|
|
|
|
|
|
/* public definitions of inet functions... */
|
|
|
|
|
|
|
|
#ifndef _INET_H_
|
|
|
|
#define _INET_H_
|
|
|
|
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/types.h>
|
2002-09-03 04:02:40 +04:00
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <ByteOrder.h> /* htonl, htons, ntohl, ntohs */
|
2002-07-09 16:24:59 +04:00
|
|
|
|
2002-10-25 19:13:00 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2002-07-09 16:24:59 +04:00
|
|
|
in_addr_t inet_addr (const char *);
|
|
|
|
int inet_aton (const char *, struct in_addr *);
|
|
|
|
in_addr_t inet_lnaof (struct in_addr);
|
|
|
|
struct in_addr inet_makeaddr (in_addr_t , in_addr_t);
|
|
|
|
char * inet_neta (in_addr_t, char *, size_t);
|
|
|
|
in_addr_t inet_netof (struct in_addr);
|
|
|
|
in_addr_t inet_network (const char *);
|
|
|
|
char *inet_net_ntop (int, const void *, int, char *, size_t);
|
|
|
|
int inet_net_pton (int, const char *, void *, size_t);
|
|
|
|
char *inet_ntoa (struct in_addr);
|
|
|
|
int inet_pton (int, const char *, void *);
|
|
|
|
const char *inet_ntop (int, const void *, char *, size_t);
|
|
|
|
u_int inet_nsap_addr (const char *, u_char *, int);
|
|
|
|
char *inet_nsap_ntoa (int, const u_char *, char *);
|
|
|
|
|
2002-10-25 19:13:00 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2002-07-09 16:24:59 +04:00
|
|
|
#endif /* _INET_H */
|