Gio.InetSocketAddress¶
| Subclasses: | Gio.ProxyAddress |
|---|
Methods¶
| Inherited: | Gio.SocketAddress (4), GObject.Object (37), Gio.SocketConnectable (3) |
|---|---|
| Structs: | GObject.ObjectClass (5) |
| class | new (address, port) |
| class | new_from_string (address, port) |
get_address () |
|
get_flowinfo () |
|
get_port () |
|
get_scope_id () |
Virtual Methods¶
| Inherited: | Gio.SocketAddress (3), GObject.Object (7), Gio.SocketConnectable (3) |
|---|
Properties¶
| Inherited: | Gio.SocketAddress (1) |
|---|
| Name | Type | Flags | Short Description |
|---|---|---|---|
address |
Gio.InetAddress |
r/w/co | The address |
flowinfo |
int |
r/w/co | IPv6 flow info |
port |
int |
r/w/co | The port |
scope-id |
int |
r/w/co | IPv6 scope ID |
Signals¶
| Inherited: | GObject.Object (1) |
|---|
Fields¶
| Inherited: | GObject.Object (1) |
|---|
| Name | Type | Access | Description |
|---|---|---|---|
| parent_instance | Gio.SocketAddress |
r |
Class Details¶
-
class
Gio.InetSocketAddress(**kwargs)¶ Bases: Gio.SocketAddressAbstract: No Structure: Gio.InetSocketAddressClassAn IPv4 or IPv6 socket address; that is, the combination of a
Gio.InetAddressand a port number.-
classmethod
new(address, port)[source]¶ Parameters: - address (
Gio.InetAddress) – aGio.InetAddress - port (
int) – a port number
Returns: a new
Gio.InetSocketAddressReturn type: Creates a new
Gio.InetSocketAddressfor address and port.New in version 2.22.
- address (
-
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 storedReturn type: Gio.InetAddressGets self’s
Gio.InetAddress.New in version 2.22.
-
get_flowinfo()[source]¶ Returns: the flowinfo field Return type: intGets the
sin6_flowinfofield from self, which must be an IPv6 address.New in version 2.32.
-
classmethod
Property Details¶
-
Gio.InetSocketAddress.props.address¶ Name: addressType: Gio.InetAddressDefault Value: NoneFlags: READABLE,WRITABLE,CONSTRUCT_ONLYThe address
-
Gio.InetSocketAddress.props.flowinfo¶ Name: flowinfoType: intDefault Value: 0Flags: READABLE,WRITABLE,CONSTRUCT_ONLYThe
sin6_flowinfofield, for IPv6 addresses.New in version 2.32.
-
Gio.InetSocketAddress.props.port¶ Name: portType: intDefault Value: 0Flags: READABLE,WRITABLE,CONSTRUCT_ONLYThe port
-
Gio.InetSocketAddress.props.scope_id¶ Name: scope-idType: intDefault Value: 0Flags: READABLE,WRITABLE,CONSTRUCT_ONLYIPv6 scope ID