SocketUserReader class final

Reads the user on the other end of a Unix-domain socket from the kernel: Linux's SO_PEERCRED, macOS's LOCAL_PEERCRED.

Constructors

SocketUserReader({Kernel? kernel, ReadSocketOption readOption = _getRawOption, int? overflowUid() = _linuxOverflowUid})
A reader for kernel, the running one by default. readOption and overflowUid are the socket and /proc reads, passed in so a test can fake them.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(Socket socket) → SocketUserReading
The user on the other end of socket, or Unread with why the kernel did not name one.
toString() → String
A string representation of this object.
inherited
userOf(Socket socket) → UserId?
The user on the other end of socket; null whenever read answers Unread.

Operators

operator ==(Object other) → bool
The equality operator.
inherited