Gio.NetworkService.new

function new(service: String, protocol: String, domain: String): Gio.NetworkService {
    // Gjs wrapper for g_network_service_new()
}
  

Creates a new Gio.NetworkService representing the given service, protocol, and domain. This will initially be unresolved; use the Gio.SocketConnectable interface to resolve it.

Since 2.22

service

the service type to look up (eg, "ldap")

protocol

the networking protocol to use for service (eg, "tcp")

domain

the DNS domain to look up the service in

Returns

a new Gio.NetworkService