gio.socket_address
Module for [SocketAddress] class
Types 3
[gio.socket_address.SocketAddress] is the equivalent of
struct sockaddr) and its subtypes in the BSD sockets
API. This is an abstract class; use [gio.inet_socket_address.InetSocketAddress] for internet sockets, or [gio.unix_socket_address.UnixSocketAddress] for UNIX domain sockets.
Methods
SocketAddress self()Returns `this`, for use in `with` statements.SocketAddressGidBuilder builder()Get builder for [gio.socket_address.SocketAddress] Returns: New builder objectgio.types.SocketFamily family() @propertyGet `family` property. Returns: The family of the socket address.gio.socket_address.SocketAddress newFromNative(void * native, size_t len)Creates a #GSocketAddress subclass corresponding to the native struct sockaddr native.gio.types.SocketFamily getFamily()Gets the socket family type of address. Returns: the socket family type of addressptrdiff_t getNativeSize()Gets the size of address's native struct sockaddr. You can use this to allocate memory to pass to [gio.socket_address.SocketAddress.toNative]. Returns: the size of the native struct sockaddr that a...bool toNative(void * dest, size_t destlen)Converts a #GSocketAddress to a native struct sockaddr, which can be passed to low-level functions like connect() or bind().Fluent builder for [gio.socket_address.SocketAddress]
Methods