Monero
Loading...
Searching...
No Matches
net::socks Namespace Reference

Classes

class  connect_handler
struct  endpoint
 Separates TCP address, user+pass, and socks version. More...
class  client
 Client support for socks connect and resolve commands. More...
class  connect_client
struct  connector
 Primarily for use with epee::net_utils::http_client. More...

Enumerations

enum class  version : std::uint8_t { v4 = 0 , v4a , v4a_tor , v5 }
 Supported socks variants. More...
enum class  error : int {
  general_failure = 1 , not_allowed , network_unreachable , host_unreachable ,
  connection_refused , ttl_expired , command_not_supported , address_type_not_supported ,
  rejected = 92 , identd_connection , identd_user , auth_failure = 257 ,
  bad_read , bad_write , unexpected_version
}
 Possible errors with socks communication. Defined in https://www.openssh.com/txt/socks4.protocol. More...

Functions

const boost::system::error_category & error_category () noexcept
boost::system::error_code make_error_code (error value) noexcept
template<typename Handler>
std::shared_ptr< clientmake_connect_client (client::stream_type::socket &&proxy, socks::version ver, Handler handler)

Enumeration Type Documentation

◆ error

enum class net::socks::error : int
strong

Possible errors with socks communication. Defined in https://www.openssh.com/txt/socks4.protocol.

Enumerator
general_failure 
not_allowed 
network_unreachable 
host_unreachable 
connection_refused 
ttl_expired 
command_not_supported 
address_type_not_supported 
rejected 
identd_connection 
identd_user 
auth_failure 
bad_read 
bad_write 
unexpected_version 

◆ version

enum class net::socks::version : std::uint8_t
strong

Supported socks variants.

Enumerator
v4 
v4a 
v4a_tor 

Extensions defined in Tor codebase.

v5 

Function Documentation

◆ error_category()

const boost::system::error_category & net::socks::error_category ( )
noexcept
Returns
boost::system::error_category for net::socks namespace

◆ make_connect_client()

template<typename Handler>
std::shared_ptr< client > net::socks::make_connect_client ( client::stream_type::socket && proxy,
socks::version ver,
Handler handler )
inline

◆ make_error_code()

boost::system::error_code net::socks::make_error_code ( error value)
inlinenoexcept
Returns
net::socks::error as a boost::system::error_code.