UnixSocketAddress


Object Hierarchy:

GLib.UnixSocketAddress GLib.UnixSocketAddress GLib.UnixSocketAddress GLib.SocketAddress GLib.SocketAddress GLib.SocketAddress->GLib.UnixSocketAddress GLib.Object GLib.Object GLib.Object->GLib.SocketAddress GLib.SocketConnectable GLib.SocketConnectable GLib.SocketConnectable->GLib.UnixSocketAddress GLib.SocketConnectable->GLib.SocketAddress

Description:


public class UnixSocketAddress : SocketAddress, SocketConnectable

Support for UNIX-domain (also known as local) sockets, corresponding to `struct sockaddr_un`.

UNIX domain sockets are generally visible in the filesystem. However, some systems support abstract socket names which are not visible in the filesystem and not affected by the filesystem permissions, visibility, etc. Currently this is only supported under Linux. If you attempt to use abstract sockets on other systems, function calls may return `G_IO_ERROR_NOT_SUPPORTED` errors. You can use [ func@Gio.UnixSocketAddress.abstract_names_supported] to see if abstract names are supported.

Since GLib 2.72, `GUnixSocketAddress` is available on all platforms. It requires underlying system support (such as Windows 10 with `AF_UNIX`) at run time.

Before GLib 2.72, `<gio/gunixsocketaddress.h>` belonged to the UNIX-specific GIO interfaces, thus you had to use the `gio-unix-2.0.pc` pkg-config file when using it. This is no longer necessary since GLib 2.72.


Namespace: GLib
Package: gio-unix-2.0

Content:

Properties:

Static methods:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class GLib.SocketAddress
All known members inherited from interface GLib.SocketConnectable