|
Document of c-modernization-kit (porter) 1.0.0
|
IPv4 アドレス変換ユーティリティ (内部用)。 More...
#include <arpa/inet.h>#include <netinet/in.h>Go to the source code of this file.
Functions | |
| int | parse_ipv4_addr (const char *ip_str, struct in_addr *out_addr) |
| int | resolve_ipv4_addr (const char *host, struct in_addr *out_addr) |
| ホスト名または IPv4 アドレス文字列を struct in_addr に解決する。 | |
IPv4 アドレス変換ユーティリティ (内部用)。
Definition in file potrIpAddr.h.
| int parse_ipv4_addr | ( | const char * | ip_str, |
| struct in_addr * | out_addr ) |
Definition at line 28 of file potrIpAddr.c.
References POTR_ERROR, and POTR_SUCCESS.
Referenced by open_socket_multicast(), potrCloseService(), and potrOpenService().
| int resolve_ipv4_addr | ( | const char * | host, |
| struct in_addr * | out_addr ) |
ホスト名または IPv4 アドレス文字列を struct in_addr に解決する。
getaddrinfo() を使用して AF_INET で名前解決する。 複数のアドレスが返された場合は先頭のアドレスを採用する。
Definition at line 46 of file potrIpAddr.c.
References POTR_ERROR, and POTR_SUCCESS.
Referenced by open_socket_tcp_receiver(), open_socket_tcp_sender(), and potrOpenService().