InetSocketAddress.this

Creates a new #GInetSocketAddress for @address and @port.

If @address is an IPv6 address, it can also contain a scope ID (separated from the address by a %).

  1. this(GInetSocketAddress* gInetSocketAddress, bool ownedRef)
  2. this(InetAddress address, ushort port)
  3. this(string address, uint port)
    class InetSocketAddress
    this
    (
    string address
    ,
    uint port
    )

Parameters

address string

the string form of an IP address

port uint

a port number

Return Value

a new #GInetSocketAddress, or %NULL if @address cannot be parsed.

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.40