Skip to content

Gio.NativeSocketAddress

class — extends SocketAddress, SocketConnectable

A socket address of some unknown native type.

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

Constructors

new

@classmethod
def new(cls, native: int | None, len: int) -> SocketAddress

Creates a new NativeSocketAddress for native and len.

Parameters:

  • native — a native address object
  • len — the length of native, in bytes