SocketAddress
Object Hierarchy:
Description:
[
CCode ( type_id =
"g_socket_address_get_type ()" ) ]
public abstract class SocketAddress :
Object,
SocketConnectable
`GSocketAddress` is the equivalent of [`struct sockaddr`](man:sockaddr(3type)) and its subtypes in the BSD sockets API.
This is an abstract class; use [class@Gio.InetSocketAddress] for internet sockets, or [class@Gio.UnixSocketAddress] for UNIX domain
sockets.
Content:
Properties:
Static methods:
Creation methods:
Methods:
- public virtual SocketFamily get_family ()
Gets the socket family type of this.
- public virtual ssize_t get_native_size ()
Gets the size of this's native
struct sockaddr.
- public virtual bool to_native (void* dest, size_t destlen) throws Error
Converts a SocketAddress to a
native struct sockaddr, which can be passed to low-level functions like connect or bind.
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface GLib.SocketConnectable