Gio.NativeSocketAddress

g GObject.GInterface GObject.GInterface Gio.SocketConnectable Gio.SocketConnectable GObject.GInterface->Gio.SocketConnectable GObject.Object GObject.Object Gio.SocketAddress Gio.SocketAddress GObject.Object->Gio.SocketAddress Gio.NativeSocketAddress Gio.NativeSocketAddress Gio.SocketAddress->Gio.NativeSocketAddress Gio.SocketConnectable->Gio.SocketAddress

Subclasses:

None

Methods

Inherited:

Gio.SocketAddress (4), GObject.Object (37), Gio.SocketConnectable (3)

Structs:

GObject.ObjectClass (5)

class

new (native, len)

Virtual Methods

Inherited:

Gio.SocketAddress (3), GObject.Object (7), Gio.SocketConnectable (3)

Properties

Inherited:

Gio.SocketAddress (1)

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Gio.SocketAddress

r

Class Details

class Gio.NativeSocketAddress(**kwargs)
Bases:

Gio.SocketAddress

Abstract:

No

Structure:

Gio.NativeSocketAddressClass

A socket address of some unknown native type.

This corresponds to a general struct sockaddr of a type not otherwise handled by GLib.

New in version 2.46.

classmethod new(native, len)[source]
Parameters:
  • native (object or None) – a native address object

  • len (int) – the length of native, in bytes

Returns:

a new Gio.NativeSocketAddress

Return type:

Gio.SocketAddress

Creates a new Gio.NativeSocketAddress for native and len.

New in version 2.46.