Document of c-modernization-kit (porter)
1.0.0
Loading...
Searching...
No Matches
porter
libsrc
porter
util
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
25
int
parse_ipv4_addr
(
const
char
*ip_str,
struct
in_addr *out_addr);
26
33
int
resolve_ipv4_addr
(
const
char
*host,
struct
in_addr *out_addr);
34
35
#endif
/* POTR_IP_ADDR_H */
parse_ipv4_addr
int parse_ipv4_addr(const char *ip_str, struct in_addr *out_addr)
Definition
potrIpAddr.c:28
resolve_ipv4_addr
int resolve_ipv4_addr(const char *host, struct in_addr *out_addr)
ホスト名または IPv4 アドレス文字列を struct in_addr に解決する。
Definition
potrIpAddr.c:46
Generated by
1.14.0