libsshpp v0.1.7
Modern C++17 wrapper for libssh
Loading...
Searching...
No Matches
sshpp::SocksProxy::Options Struct Reference

#include <forwarding.hpp>

Collaboration diagram for sshpp::SocksProxy::Options:
[legend]

Public Attributes

TcpEndpoint listen {"127.0.0.1", 1080}
 
bool allow_socks4 = false
 
std::size_t max_connections = 128
 
std::size_t buffer_size = 64 * 1024
 
std::function< bool(const ForwardTarget &)> allow
 Called with the requested destination; return false to refuse.
 
std::function< void(const ErrorInfo &)> on_error
 

Member Data Documentation

◆ listen

TcpEndpoint sshpp::SocksProxy::Options::listen {"127.0.0.1", 1080}

◆ allow_socks4

bool sshpp::SocksProxy::Options::allow_socks4 = false

◆ max_connections

std::size_t sshpp::SocksProxy::Options::max_connections = 128

◆ buffer_size

std::size_t sshpp::SocksProxy::Options::buffer_size = 64 * 1024

◆ allow

std::function<bool(const ForwardTarget&)> sshpp::SocksProxy::Options::allow

Called with the requested destination; return false to refuse.

◆ on_error

std::function<void(const ErrorInfo&)> sshpp::SocksProxy::Options::on_error

The documentation for this struct was generated from the following file: