UnixFDMessage
Superclasses: SocketControlMessage
, Object
- Constructors:
UnixFDMessage(**properties)
new() -> Gio.SocketControlMessage
new_with_fd_list(fd_list:Gio.UnixFDList) -> Gio.SocketControlMessage
Constructors
- class UnixFDMessage
- classmethod new() SocketControlMessage
Creates a new
UnixFDMessage
containing an empty file descriptor list.Added in version 2.22.
- classmethod new_with_fd_list(fd_list: UnixFDList) SocketControlMessage
Creates a new
UnixFDMessage
containinglist
.Added in version 2.24.
- Parameters:
fd_list – a
UnixFDList
Methods
- class UnixFDMessage
- append_fd(fd: int) bool
Adds a file descriptor to
message
.The file descriptor is duplicated using dup(). You keep your copy of the descriptor and the copy contained in
message
will be closed whenmessage
is finalized.A possible cause of failure is exceeding the per-process or system-wide file descriptor limit.
Added in version 2.22.
- Parameters:
fd – a valid open file descriptor
- get_fd_list() UnixFDList
Gets the
UnixFDList
contained inmessage
. This function does not return a reference to the caller, but the returned list is valid for the lifetime ofmessage
.Added in version 2.24.
Properties
- class UnixFDMessage
- props.fd_list: UnixFDList
The
UnixFDList
object to send with the message.Added in version 2.22.