Gio.UnixCredentialsMessage¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The credentials stored in the message |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Gio.UnixCredentialsMessage(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
This
Gio.SocketControlMessage
contains aGio.Credentials
instance. It may be sent usingGio.Socket.send_message
() and received usingGio.Socket.receive_message
() over UNIX sockets (ie: sockets in theGio.SocketFamily.UNIX
family).For an easier way to send and receive credentials over stream-oriented UNIX sockets, see
Gio.UnixConnection.send_credentials
() andGio.UnixConnection.receive_credentials
(). To receive credentials of a foreign process connected to a socket, useGio.Socket.get_credentials
().Since GLib 2.72, #GUnixCredentialMessage is available on all platforms. It requires underlying system support (such as Windows 10 with
AF_UNIX
) at run time.Before GLib 2.72,
<gio/gunixcredentialsmessage.h>
belonged to the UNIX-specific GIO interfaces, thus you had to use thegio-unix-2.0.pc
pkg-config file when using it. This is no longer necessary since GLib 2.72.New in version 2.26.
- classmethod is_supported()[source]¶
-
Checks if passing
Gio.Credentials
on aGio.Socket
is supported on this platform.New in version 2.26.
- classmethod new()[source]¶
- Returns:
- Return type:
Creates a new
Gio.UnixCredentialsMessage
with credentials matching the current processes.New in version 2.26.
- classmethod new_with_credentials(credentials)[source]¶
- Parameters:
credentials (
Gio.Credentials
) – AGio.Credentials
object.- Returns:
- Return type:
Creates a new
Gio.UnixCredentialsMessage
holding credentials.New in version 2.26.
- get_credentials()[source]¶
- Returns:
A
Gio.Credentials
instance. Do not free, it is owned by self.- Return type:
Gets the credentials stored in self.
New in version 2.26.
Property Details¶
- Gio.UnixCredentialsMessage.props.credentials¶
- Name:
credentials
- Type:
- Default Value:
- Flags:
The credentials stored in the message.
New in version 2.26.