package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gio/Ocgtk_gio/Gio/Wrappers/Unix_socket_address/index.html

Module Wrappers.Unix_socket_address

type t = [ `unix_socket_address | `socket_address | `object_ ] Gobject.obj
val new_ : string -> t

Create a new UnixSocketAddress

val new_abstract : int array -> int -> t

Create a new UnixSocketAddress

val new_with_type : int array -> int -> Gio_enums.unixsocketaddresstype -> t

Create a new UnixSocketAddress

val get_path_len : t -> Gsize.t

Gets the length of @address's path.

For details, see g_unix_socket_address_get_path().

val get_path : t -> string

Gets @address's path, or for abstract sockets the "name".

Guaranteed to be zero-terminated, but an abstract socket may contain embedded zeros, and thus you should use g_unix_socket_address_get_path_len() to get the true length of this string.

val get_is_abstract : t -> bool

Tests if @address is abstract.

val get_address_type : t -> Gio_enums.unixsocketaddresstype

Gets @address's type.

val get_abstract : t -> bool

Get property: abstract