Socks5HandshakeReader class final

Exact-byte reader over a SOCKS5 handshake socket owned end-to-end by the connector. The underlying iterator stays attached for the post-handshake pipe (leftover flushes first) — a dart:io socket stream can never be listened twice, so the reader and the pipe MUST share it.

Constructors

Socks5HandshakeReader(Socket socket)
Socks5HandshakeReader.scripted(Stream<Uint8List> bytes, void _write(List<int> bytes))
Scripted constructor: reads ride bytes, writes land in sink — the unit suite drives full handshakes with no sockets.

Properties

hashCode → int
The hash code for this object.
no setterinherited
iterator → StreamIterator<Uint8List>
final
leftover → Uint8List
Unread buffered bytes (early target data racing the handshake tail).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(List<int> bytes) → void
The write side (the handshake socket's add in production).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readExactly(int count) → Future<Uint8List>
toString() → String
A string representation of this object.
inherited

Operators

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