Gio.InetSocketAddress¶
- Subclasses:
 
Methods¶
- Inherited:
 Gio.SocketAddress (4), GObject.Object (37), Gio.SocketConnectable (3)
- Structs:
 
class  | 
  | 
class  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
Properties¶
- Inherited:
 
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w/co  | 
|||
r/w/co  | 
|||
r/w/co  | 
|||
r/w/co  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent_instance  | 
r  | 
Class Details¶
- class Gio.InetSocketAddress(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
An IPv4 or IPv6 socket address. That is, the combination of a [class`Gio`.InetAddress] and a port number.
In UNIX terms,
GInetSocketAddresscorresponds to a struct sockaddr_in or struct sockaddr_in6).- classmethod new(address, port)[source]¶
 - Parameters:
 address (
Gio.InetAddress) – aGio.InetAddressport (
int) – a port number
- Returns:
 a new
Gio.InetSocketAddress- Return type:
 
Creates a new
Gio.InetSocketAddressfor address and port.New in version 2.22.
- classmethod new_from_string(address, port)[source]¶
 - Parameters:
 - Returns:
 a new
Gio.InetSocketAddress, orNoneif address cannot be parsed.- Return type:
 
Creates a new
Gio.InetSocketAddressfor address and port.If address is an IPv6 address, it can also contain a scope ID (separated from the address by a
%).New in version 2.40.
- get_address()[source]¶
 - Returns:
 the
Gio.InetAddressfor self, which must beGObject.Object.ref()’d if it will be stored- Return type:
 
Gets self's
Gio.InetAddress.New in version 2.22.
- get_flowinfo()[source]¶
 - Returns:
 the flowinfo field
- Return type:
 
Gets the
sin6_flowinfofield from self, which must be an IPv6 address.New in version 2.32.
Property Details¶
- Gio.InetSocketAddress.props.address¶
 - Name:
 address- Type:
 - Default Value:
 - Flags:
 
The address.
New in version 2.22.
- Gio.InetSocketAddress.props.flowinfo¶
 - Name:
 flowinfo- Type:
 - Default Value:
 0- Flags:
 
The
sin6_flowinfofield, for IPv6 addresses.New in version 2.32.
- Gio.InetSocketAddress.props.port¶
 - Name:
 port- Type:
 - Default Value:
 0- Flags:
 
The port.
New in version 2.22.
- Gio.InetSocketAddress.props.scope_id¶
 - Name:
 scope-id- Type:
 - Default Value:
 0- Flags:
 
The
sin6_scope_idfield, for IPv6 addresses.New in version 2.32.