Monero
Loading...
Searching...
No Matches
socks.h File Reference
#include <cstdint>
#include <boost/asio/io_context.hpp>
#include <boost/asio/ip/tcp.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
struct  net::socks::client::close_on_exit
 Calls async_close on self at destruction. NOP if nullptr. More...
class  net::socks::connect_client< Handler >
struct  boost::system::is_error_code_enum< net::socks::error >

Namespaces

namespace  epee
 TODO: (mj-xmr) This will be reduced in an another PR.
namespace  epee::net_utils
namespace  net
namespace  net::socks
namespace  boost
namespace  boost::system

Enumerations

enum class  net::socks::version : std::uint8_t { net::socks::v4 = 0 , net::socks::v4a , net::socks::v4a_tor }
 Supported socks variants. More...
enum class  net::socks::error : int {
  net::socks::rejected = 92 , net::socks::identd_connection , net::socks::identd_user , net::socks::bad_read = 257 ,
  net::socks::bad_write , net::socks::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< clientnet::socks::make_connect_client (client::stream_type::socket &&proxy, socks::version ver, Handler handler)