Skip to main content

Module socks

Module socks 

Source
Expand description

SOCKS-specific proxy support.

StructsΒ§

AuthInterpretation πŸ”’
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 S on 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.