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.readOptionandoverflowUidare the socket and/procreads, 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, orUnreadwith 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 answersUnread.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited