UnixConnection.peerCredentials

CredentialsResult peerCredentials() const @safe nothrow @nogc

Query the credentials of the connected peer.

Values are captured when the connection is established (adopt, finished connect) and pinned by the kernel at connect time, so they remain valid after the peer exits. Availability of individual fields is explicit in PeerCredentials. Identity is not authorization.

Returns

The captured credentials, or a CredentialsError: