P_dns4_get_my_name 3porty 2011-04-13 libporty manual

NAME

P_dns4_get_my_name, P_dns4_get_my_IP

SYNPOSIS

#include <libporty/net/dns4.h>

char * P_dns4_get_my_name (void);
unsigned long int P_dns4_get_my_IP (void);

Link with -lporty_net

DESCRIPTION

Query hostname or IP address of the host system.

RETURN VALUE

P_dns4_get_my_name returns a pointer to a string allocated using malloc(3), or NULL. P_dns4_get_my_IP returns the IP address associated with the hostname, or 255.255.255.255 (0xFFFFFFFF) on failure.

P_dns4_get_my_name 3porty 2011-04-13 libporty manual