8#define MAX_IP_ADDR_LEN 1024
73 const char* restrict service,
74 const struct addrinfo* restrict hints,
void get_local_ip_address(char *ip_addr)
Get the local IP address of the machine (e.g.
int lookup_address(const char *lookup_addr, char *ip_addr)
Perform lookup of given IP address by the domain address (e.g.
int is_numeric_address(const char *ip_addr)
Check if the IP address is a numeric address (e.g.
int is_in_private_network(const char *ip_addr)
Check if the IP address is in the private prefix (e.g.
void freeaddrinfo(struct addrinfo *res)
int is_valid_domain_address(const char *domain_addr)
Check if the IP address is a valid domain address (e.g.
const char * gai_strerror(int errcode)
int getaddrinfo(const char *restrict node, const char *restrict service, const struct addrinfo *restrict hints, struct addrinfo **restrict res)
void get_remote_ip_address(char *ip_addr)
Get the remote IP address of the machine (e.g.
struct sockaddr * ai_addr
struct addrinfo * ai_next