Electroneum
socks.h File Reference
#include <cstdint>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/io_service.hpp>
#include <boost/asio/strand.hpp>
#include <boost/system/error_code.hpp>
#include <boost/type_traits/integral_constant.hpp>
#include <boost/utility/string_ref.hpp>
#include <memory>
#include <utility>
#include "net/fwd.h"
#include "span.h"
Include dependency graph for socks.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  net::socks::client
 Client support for socks connect and resolve commands. More...
 
struct  net::socks::client::async_close
 
class  net::socks::connect_client< Handler >
 
struct  boost::system::is_error_code_enum< net::socks::error >
 

Namespaces

 epee
 
 epee::net_utils
 
 net
 
 net::socks
 
 boost
 
 boost::system
 

Enumerations

enum  net::socks::version : std::uint8_t { net::socks::version::v4 = 0, net::socks::version::v4a, net::socks::version::v4a_tor }
 Supported socks variants. More...
 
enum  net::socks::error : int {
  net::socks::error::rejected = 92, net::socks::error::identd_connection, net::socks::error::identd_user, net::socks::error::bad_read = 257,
  net::socks::error::bad_write, net::socks::error::unexpected_version
}
 Possible errors with socks communication. Defined in https://www.openssh.com/txt/socks4.protocol. More...
 

Functions

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