Socks5HandshakeReader.scripted constructor

Socks5HandshakeReader.scripted(
  1. Stream<Uint8List> bytes,
  2. void _write(
    1. List<int> bytes
    )
)

Scripted constructor: reads ride bytes, writes land in sink — the unit suite drives full handshakes with no sockets.

Implementation

Socks5HandshakeReader.scripted(Stream<Uint8List> bytes, this._write)
  : iterator = StreamIterator(bytes);