NetworkService
Superclasses: Object
Implemented Interfaces: SocketConnectable
- Constructors:
NetworkService(**properties)
new(service:str, protocol:str, domain:str) -> Gio.NetworkService
Constructors
- class NetworkService
- classmethod new(service: str, protocol: str, domain: str) NetworkService
Creates a new
NetworkService
representing the givenservice
,protocol
, anddomain
. This will initially be unresolved; use theSocketConnectable
interface to resolve it.Added in version 2.22.
- Parameters:
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
Methods
- class NetworkService
- get_domain() str
Gets the domain that
srv
serves. This might be either UTF-8 or ASCII-encoded, depending on whatsrv
was created with.Added in version 2.22.
Properties
- class NetworkService