Document of c-modernization-kit (porter) 1.0.0
Loading...
Searching...
No Matches
potrIpAddr.h
Go to the documentation of this file.
1
13
14#ifndef POTR_IP_ADDR_H
15#define POTR_IP_ADDR_H
16
17#ifndef _WIN32
18 #include <arpa/inet.h>
19 #include <netinet/in.h>
20#else /* _WIN32 */
21 #include <winsock2.h>
22 #include <ws2tcpip.h>
23#endif /* _WIN32 */
24
25int parse_ipv4_addr(const char *ip_str, struct in_addr *out_addr);
26
33int resolve_ipv4_addr(const char *host, struct in_addr *out_addr);
34
35#endif /* POTR_IP_ADDR_H */
int parse_ipv4_addr(const char *ip_str, struct in_addr *out_addr)
Definition potrIpAddr.c:28
int resolve_ipv4_addr(const char *host, struct in_addr *out_addr)
ホスト名または IPv4 アドレス文字列を struct in_addr に解決する。
Definition potrIpAddr.c:46