SocketUserReader constructor

SocketUserReader({
  1. Kernel? kernel,
  2. ReadSocketOption readOption = _getRawOption,
  3. 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.

Implementation

SocketUserReader({
  Kernel? kernel,
  this._readOption = _getRawOption,
  this._overflowUid = _linuxOverflowUid,
}) : _kernel = kernel ?? Kernel.current;