GObject.Object
Gio.SocketControlMessage
Gio.UnixFDMessage
Import line: | Gio = imports.gi.Gio; |
GIR File: | Gio-2.0.gir |
C documentation: | GUnixFDMessage |
Class : | UnixFDMessage |
Extends: | Gio.SocketControlMessage |
Properties | Defined By | |
---|---|---|
fd_list : Gio.UnixFDList
|
Gio.UnixFDMessage | |
parent_instance : Gio.SocketControlMessage
read only
|
Gio.UnixFDMessage | |
priv : Gio.UnixFDMessagePrivate
read only
|
Gio.UnixFDMessage |
Method / Constructor | Defined By | |
---|---|---|
new Gio.UnixFDMessage
(Object properties)
Create a new Gio.UnixFDMessage
Create a new Gio.UnixFDMessage
|
||
Create a new Gio.UnixFDMessage
Create a new Gio.UnixFDMessage
|
||
Adds a file descriptor to message.
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 when message is finalized. A possible cause of failure is exceeding the per-process or system-wide file descriptor limit.
|
Gio.UnixFDMessage | |
get_fd_list
()
:
Gio.UnixFDList
Gets the GUnixFDList contained in message.
Gets the GUnixFDList contained in message. This function does not
return a reference to the caller, but the returned list is valid for the lifetime of message.
|
Gio.UnixFDMessage | |
get_level
()
:
gint32
Returns the "level" (i.e.
Returns the "level" (i.e. the originating protocol) of the control message.
This is often SOL_SOCKET.
|
Gio.SocketControlMessage | |
get_msg_type
()
:
gint32
Returns the protocol specific type of the control message.
Returns the protocol specific type of the control message.
For instance, for UNIX fd passing this would be SCM_RIGHTS.
|
Gio.SocketControlMessage | |
get_size
()
:
guint32
Returns the space required for the control message, not including
headers or alignment.
Returns the space required for the control message, not including
headers or alignment.
|
Gio.SocketControlMessage | |
serialize
(void* data)
:
none
Converts the data in the message to bytes placed in the
message.
Converts the data in the message to bytes placed in the
message. returned by g_socket_control_message_get_size() on this object.
|
Gio.SocketControlMessage | |
Returns the array of file descriptors that is contained in this
object.
Returns the array of file descriptors that is contained in this
object. After this call, the descriptors are no longer contained in descriptors have been added). The return result of this function must be freed with g_free(). The caller is also responsible for closing all of the file descriptors. If length is non-NULL 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 NULL. In case there are no file descriptors contained in message, an empty array is returned. descriptors
|
Gio.UnixFDMessage |
None |