InetAddress represents an IPv4 or IPv6 internet address. Use lookup_by_name or lookup_by_name_async to look up the InetAddress for a hostname. Use lookup_by_address or lookup_by_address_async to look up the hostname for a InetAddress.
To actually connect to a remote host, you will need a InetSocketAddress (which includes a InetAddress as well as a port number).
family.
family
and bytes. bytes should be 4 bytes for G_INET_ADDRESS_IPV4 and 16 bytes for
G_INET_ADDRESS_IPV6.
string as an IP address and creates a new
InetAddress.
family.
address's family
address is the "any" address for its family.
address is a link-local address (that is, if it identifies a host on a local
network that is not connected to the Internet).
address is the loopback address for its family.
address is a global multicast address.
address is a link-local multicast address.
address is a node-local multicast address.
address is an organization-local multicast address.
address is a site-local multicast address.
address is a multicast address.
address is a site-local address such as 10.0.0.1 (that is, the address
identifies a host on a local network that can not be reached directly from the Internet, but which may have outgoing Internet
connectivity via a NAT or firewall).
address. This is the size of the data
that you get from to_bytes.
address.
address to string form.
