Gio.NetworkService¶
- Subclasses:
 None
Methods¶
- Inherited:
 - Structs:
 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
- Inherited:
 
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w/co  | 
|||
r/w/co  | 
|||
r/w  | 
|||
r/w/co  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent_instance  | 
r  | 
Class Details¶
- class Gio.NetworkService(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
Like [class`Gio`.NetworkAddress] does with hostnames,
GNetworkServiceprovides an easy way to resolve a SRV record, and then attempt to connect to one of the hosts that implements that service, handling service priority/weighting, multiple IP addresses, and multiple address families.See [struct`Gio`.SrvTarget] for more information about SRV records, and see [iface`Gio`.SocketConnectable] for an example of using the connectable interface.
- classmethod new(service, protocol, domain)[source]¶
 - Parameters:
 - Returns:
 a new
Gio.NetworkService- Return type:
 
Creates a new
Gio.NetworkServicerepresenting the given service, protocol, and domain. This will initially be unresolved; use theGio.SocketConnectableinterface to resolve it.New in version 2.22.
- get_domain()[source]¶
 - Returns:
 self's domain name
- Return type:
 
Gets the domain that self serves. This might be either UTF-8 or ASCII-encoded, depending on what self was created with.
New in version 2.22.
- get_protocol()[source]¶
 - Returns:
 self's protocol name
- Return type:
 
Gets self's protocol name (eg, “tcp”).
New in version 2.22.
- get_scheme()[source]¶
 - Returns:
 self's scheme name
- Return type:
 
Gets the URI scheme used to resolve proxies. By default, the service name is used as scheme.
New in version 2.26.
Property Details¶
- Gio.NetworkService.props.domain¶
 - Name:
 domain- Type:
 - Default Value:
 - Flags:
 
Network domain, for example
example.com.New in version 2.22.
- Gio.NetworkService.props.protocol¶
 - Name:
 protocol- Type:
 - Default Value:
 - Flags:
 
Network protocol, for example
tcp.New in version 2.22.
- Gio.NetworkService.props.scheme¶
 - 
Network scheme (default is to use service).
New in version 2.22.