Returns the credentials of the foreign process connected to this
socket, if any (e.g. it is only supported for gio.types.SocketFamily.Unix
sockets).
If this operation isn't supported on the OS, the method fails with
the gio.types.IOErrorEnum.NotSupported error. On Linux this is implemented
by reading the SO_PEERCRED option on the underlying socket.
This method can be expected to be available on the following platforms:
Returns the credentials of the foreign process connected to this socket, if any (e.g. it is only supported for gio.types.SocketFamily.Unix sockets).
If this operation isn't supported on the OS, the method fails with the gio.types.IOErrorEnum.NotSupported error. On Linux this is implemented by reading the SO_PEERCRED option on the underlying socket.
This method can be expected to be available on the following platforms:
Other ways to obtain credentials from a foreign peer includes the #GUnixCredentialsMessage type and gio.unix_connection.UnixConnection.sendCredentials / gio.unix_connection.UnixConnection.receiveCredentials functions.