NetworkAddress.this

this(void * ptr, Flag!"Take" take)
No documentation available for this declaration.
this(string hostname, ushort port)

Creates a new #GSocketConnectable for connecting to the given hostname and port.

Note that depending on the configuration of the machine, a hostname of localhost may refer to the IPv4 loopback address only, or to both IPv4 and IPv6; use [gio.network_address.NetworkAddress.newLoopback] to create a #GNetworkAddress that is guaranteed to resolve to both addresses.

Parameters

hostnamethe hostname
portthe port

Returns

the new #GNetworkAddress