Electroneum
Namespaces | Classes | Enumerations | Functions
net::socks Namespace Reference

Namespaces

 anonymous_namespace{socks.cpp}
 

Classes

class  connect_handler
 
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 }
 Supported socks variants. More...
 
enum class  error : int {
  rejected = 92 , identd_connection , identd_user , bad_read = 257 ,
  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 net::socks::error : int
strong

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

Enumerator
rejected 
identd_connection 
identd_user 
bad_read 
bad_write 
unexpected_version 

◆ version

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

Supported socks variants.

Enumerator
v4 
v4a 
v4a_tor 

Extensions defined in Tor codebase.

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.