Gio.NetworkAddress.new

function new(hostname: String, port: Number(guint16)): Gio.NetworkAddress {
    // Gjs wrapper for g_network_address_new()
}
  

Creates a new Gio.SocketConnectable for connecting to the given hostname and port.

Since 2.22

hostname

the hostname

port

the port

Returns

the new Gio.NetworkAddress