inet.h revision f16b7405fff7c3fc1da421b6bdf8552cc99c3156
1#ifndef ARPA_INET_H 2#define ARPA_INET_H 3 4#include <winsock2.h> 5#include <inttypes.h> 6 7typedef int socklen_t; 8typedef int in_addr_t; 9 10#define IP_MULTICAST_IF 2 11#define IP_MULTICAST_TTL 3 12#define IP_ADD_MEMBERSHIP 5 13 14struct ip_mreq 15{ 16 struct in_addr imr_multiaddr; 17 struct in_addr imr_interface; 18}; 19 20in_addr_t inet_network(const char *cp); 21 22const char *inet_ntop(int af, const void *restrict src, 23 char *restrict dst, socklen_t size); 24int inet_pton(int af, const char *restrict src, void *restrict dst); 25 26#endif /* ARPA_INET_H */ 27