Skip to main content

Module v5

Module v5 

Source
Available on crate feature socks5 only.
Expand description

SOCKS version 5 (RFC 1928) with username/password authentication (RFC 1929).

connect is the client CONNECT handshake coroutine; address, auth and message hold the wire types it exchanges.

Modules§

address
SOCKS5 target address (RFC 1928 §4): the ATYP/DST.ADDR/DST.PORT fields of the CONNECT request.
auth
SOCKS5 username/password sub-negotiation (RFC 1929).
connect
I/O-free coroutine running the SOCKS5 client CONNECT handshake (RFC 1928 method negotiation + request/reply, RFC 1929 auth).
message
SOCKS5 reply codes (RFC 1928 §6).