Hoogle Search
Within LTS Haskell 24.58 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
unixSocketAddressAbstractNamesSupported :: (HasCallStack, MonadIO m) => m Boolgi-gio GI.Gio.Objects.UnixSocketAddress Checks if abstract UNIX domain socket names are supported. Since: 2.22
-
gi-gio GI.Gio.Objects.UnixSocketAddress Gets address's type. Since: 2.26
unixSocketAddressGetIsAbstract :: (HasCallStack, MonadIO m, IsUnixSocketAddress a) => a -> m Boolgi-gio GI.Gio.Objects.UnixSocketAddress Deprecated: Use unixSocketAddressGetAddressType
unixSocketAddressGetPath :: (HasCallStack, MonadIO m, IsUnixSocketAddress a) => a -> m Textgi-gio GI.Gio.Objects.UnixSocketAddress 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 unixSocketAddressGetPathLen to get the true length of this string. Since: 2.22
unixSocketAddressGetPathLen :: (HasCallStack, MonadIO m, IsUnixSocketAddress a) => a -> m CSizegi-gio GI.Gio.Objects.UnixSocketAddress Gets the length of address's path. For details, see unixSocketAddressGetPath. Since: 2.22
unixSocketAddressNew :: (HasCallStack, MonadIO m) => Text -> m UnixSocketAddressgi-gio GI.Gio.Objects.UnixSocketAddress Creates a new UnixSocketAddress for path. To create abstract socket addresses, on systems that support that, use unixSocketAddressNewAbstract. Since: 2.22
unixSocketAddressNewAbstract :: (HasCallStack, MonadIO m) => [Int8] -> m UnixSocketAddressgi-gio GI.Gio.Objects.UnixSocketAddress Deprecated: Use unixSocketAddressNewWithType.
-
gi-gio GI.Gio.Objects.UnixSocketAddress Creates a new UnixSocketAddress of type type with name path. If type is UnixSocketAddressTypePath, this is equivalent to calling unixSocketAddressNew. If type is UnixSocketAddressTypeAnonymous, path and pathLen will be ignored. If pathType is UnixSocketAddressTypeAbstract, then pathLen bytes of path will be copied to the socket's path, and only those bytes will be considered part of the name. (If pathLen is -1, then path is assumed to be NUL-terminated.) For example, if path was "test", then calling socketAddressGetNativeSize on the returned socket would return 7 (2 bytes of overhead, 1 byte for the abstract-socket indicator byte, and 4 bytes for the name "test"). If pathType is UnixSocketAddressTypeAbstractPadded, then pathLen bytes of path will be copied to the socket's path, the rest of the path will be padded with 0 bytes, and the entire zero-padded buffer will be considered the name. (As above, if pathLen is -1, then path is assumed to be NUL-terminated.) In this case, socketAddressGetNativeSize will always return the full size of a struct sockaddr_un, although unixSocketAddressGetPathLen will still return just the length of path. UnixSocketAddressTypeAbstract is preferred over UnixSocketAddressTypeAbstractPadded for new programs. Of course, when connecting to a server created by another process, you must use the appropriate type corresponding to how that process created its listening socket. Since: 2.26
module GI.Gio.Structs.
UnixMountEntry Defines a Unix mount entry (e.g. <filename>/media/cdrom</filename>). This corresponds roughly to a mtab entry.
-
gi-gio GI.Gio.Structs.UnixMountEntry Memory-managed wrapper type.