Gio.InetSocketAddress.new

function new(address: Gio.InetAddress, port: Number(guint16)): Gio.SocketAddress {
    // Gjs wrapper for g_inet_socket_address_new()
}
  

Creates a new Gio.InetSocketAddress for address and port.

Since 2.22

address

a Gio.InetAddress

port

a port number

Returns

a new Gio.InetSocketAddress