Fills the sockaddr structure sin
with the address contained in addr
The sockaddr to fill
Frees a #NiceAddress created with nice_address_new() or nice_address_dup()
Retreive the port of addr
Initialize a #NiceAddress into an undefined address
Returns the IP version of the address
Verifies if the address in addr
is a private address or not
Validate whether the #NiceAddress addr
is a valid IPv4 or IPv6 address
Sets an IPv4 or IPv6 address from the sockaddr structure sin
The sockaddr to set
Sets an IPv4 or IPv6 address from the string str
The string to set
Set addr
to an IPv4 address using the data from addr_ipv4
The IPv4 address
Set addr
to an IPv6 address using the data from addr_ipv6
The IPv6 address
Set the port of addr
to port
The port to set
Transforms the address addr
into a human readable string
The string to fill
The #NiceAddress structure that represents an IPv4 or IPv6 address.