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.
unixFDListNewFromArray :: (HasCallStack, MonadIO m) => [Int32] -> m UnixFDListgi-gio GI.Gio.Objects.UnixFDList Creates a new UnixFDList containing the file descriptors given in fds. The file descriptors become the property of the new list and may no longer be used by the caller. The array itself is owned by the caller. Each file descriptor in the array should be set to close-on-exec. If nFds is -1 then fds must be terminated with -1. Since: 2.24
unixFDListPeekFds :: (HasCallStack, MonadIO m, IsUnixFDList a) => a -> m [Int32]gi-gio GI.Gio.Objects.UnixFDList Returns the array of file descriptors that is contained in this object. After this call, the descriptors remain the property of list. The caller must not close them and must not free the array. The array is valid only until list is changed in any way. If length is non-Nothing then it is set to the number of file descriptors in the returned array. The returned array is also terminated with -1. This function never returns Nothing. In case there are no file descriptors contained in list, an empty array is returned. Since: 2.24
unixFDListStealFds :: (HasCallStack, MonadIO m, IsUnixFDList a) => a -> m [Int32]gi-gio GI.Gio.Objects.UnixFDList Returns the array of file descriptors that is contained in this object. After this call, the descriptors are no longer contained in list. Further calls will return an empty list (unless more descriptors have been added). The return result of this function must be freed with free. The caller is also responsible for closing all of the file descriptors. The file descriptors in the array are set to close-on-exec. If length is non-Nothing then it is set to the number of file descriptors in the returned array. The returned array is also terminated with -1. This function never returns Nothing. In case there are no file descriptors contained in list, an empty array is returned. Since: 2.24
module GI.Gio.Objects.
UnixFDMessage This SocketControlMessage contains a UnixFDList. It may be sent using socketSendMessage and received using socketReceiveMessage over UNIX sockets (ie: sockets in the G_SOCKET_FAMILY_UNIX family). The file descriptors are copied between processes by the kernel. For an easier way to send and receive file descriptors over stream-oriented UNIX sockets, see unixConnectionSendFd and unixConnectionReceiveFd. Note that <gio/gunixfdmessage.h> belongs to the UNIX-specific GIO interfaces, thus you have to use the gio-unix-2.0.pc pkg-config file or the GioUnix-2.0 GIR namespace when using it.
class (GObject o, IsDescendantOf UnixFDMessage o) =>
IsUnixFDMessage ogi-gio GI.Gio.Objects.UnixFDMessage Type class for types which can be safely cast to UnixFDMessage, for instance with toUnixFDMessage.
-
gi-gio GI.Gio.Objects.UnixFDMessage Memory-managed wrapper type.
UnixFDMessage :: ManagedPtr UnixFDMessage -> UnixFDMessagegi-gio GI.Gio.Objects.UnixFDMessage No documentation available.
-
gi-gio GI.Gio.Objects.UnixFDMessage Construct a GValueConstruct with valid value for the “fd-list” property. This is rarely needed directly, but it is used by new.
getUnixFDMessageFdList :: (MonadIO m, IsUnixFDMessage o) => o -> m UnixFDListgi-gio GI.Gio.Objects.UnixFDMessage Get the value of the “fd-list” property. When overloading is enabled, this is equivalent to
get unixFDMessage #fdList
toUnixFDMessage :: (MonadIO m, IsUnixFDMessage o) => o -> m UnixFDMessagegi-gio GI.Gio.Objects.UnixFDMessage Cast to UnixFDMessage, for types for which this is known to be safe. For general casts, use castTo.