NetworkAddress.this

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 NetworkAddress.newLoopback to create a gio.NetworkAddress that is guaranteed to resolve to both addresses.

  1. this(GNetworkAddress* gNetworkAddress, bool ownedRef)
  2. this(string hostname, ushort port)
    class NetworkAddress
    this
    (
    string hostname
    ,
    ushort port
    )
  3. this(ushort port)

Parameters

hostname string

the hostname

port ushort

the port

Return Value

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.22