Expand description
SOCKS-specific proxy support.
StructsΒ§
- Auth
Interpretation π - The meaning of a SOCKS authentication field, according to our conventions.
ConstantsΒ§
- WRONG_
PROTOCOL_ πPAYLOAD - Payload to return when an HTTP connection arrive on a Socks port without HTTP support.
FunctionsΒ§
- handle_
socks_ πconn - Given a just-received TCP connection
Son a SOCKS port, handle the SOCKS handshake and relay the connection over the Tor network. - interpret_
socks_ πauth - Given the authentication object from a socks connection, determine what itβs telling us to do.
- reply_
error π - Reply a Socks error based on an arti-client Error and close the stream. Returns the error provided in parameter
- stream_
preference - Find out which kind of address family we can/should use for a
given
SocksRequest.