Create  Edit  FrontPage  Index  Search  Changes  History  RSS  Login


class GLib::UnixSocketAddress

Support for Unix domain (also known as local) sockets.

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 raise GLib::IO::NotSupportedError. You can use GLib::UnixSocketAddress.abstract_names_supported? to see if abstract names are supported.

Note that GLib::UnixSocketAddress belongs to the Unix-specific GIO interfaces.

Class Methods

  • Returns: self: FIXME

Creates a new GLib::UnixSocketAddress for path.

To create abstract socket addresses, on systems that support that, use GLib::UnixSocketAddress.new_with_type.

Instance Methods

Checks whether or not this is an abstract address.
  • Returns: true if this is an abstract address
See GLib::SocketConnectable#each.
See GLib::SocketConnectable#enumerate.
Gets the Unix socket path.
  • Returns: The Unix socket path
Gets the Unix socket path, as byte array.
  • Returns: The Unix socket path, as byte array


abstract: true or false (Read/Write)
Whether or not this is an abstract address
path: String (Read/Write)
The Unix socket path
path-as-array: GLib::ByteArray (Read/Write)
The Unix socket path, as byte array
Last modified:2010/12/27 21:59:23
References:[GLib::SocketAddress] [GLib::UnixSocketAddress] [Ruby/GIO] [index-ruby-gio2] [GLib::SocketConnectable] [index-ruby-glib2]