SocketAddress
Object Hierarchy:
Description:
public abstract class SocketAddress :
Object,
SocketConnectable
SocketAddress is the equivalent of struct sockaddr in the BSD sockets API.
This is an abstract class; use InetSocketAddress for internet sockets, or
GUnixSocketAddress
s for UNIX domain sockets.
Content:
Properties:
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