GEnum ╰── GSocketFamily GObject ╰── GSocketAddress ├── GInetSocketAddress ├── GNativeSocketAddress ╰── GUnixSocketAddress
GSocketAddress implements GSocketConnectable.
GSocketAddress * g_socket_address_new_from_native (
Creates a GSocketAddress subclass corresponding to the native
a pointer to a struct sockaddr.
the size of the memory location pointed to by
a new GSocketAddress if
be converted, otherwise
GSocketFamily g_socket_address_get_family (
Gets the socket family type of
gboolean g_socket_address_to_native (
Converts a GSocketAddress to a native struct sockaddr, which can
be passed to low-level functions like
gssize g_socket_address_get_native_size (
Gets the size of
's native struct sockaddr.
You can use this to allocate memory to pass to
typedef struct _GSocketAddress GSocketAddress;
A socket endpoint address, corresponding to struct sockaddr or one of its subtypes.
The protocol family of a GSocketAddress. (These values are
identical to the system defines
The family of the socket address.
Default value: G_SOCKET_FAMILY_INVALID