|
| void | operator() (const boost::system::error_code error, const std::size_t bytes) const |
| |
Definition at line 149 of file socks.cpp.
◆ operator()()
| void net::socks::client::completed::operator() |
( |
const boost::system::error_code |
error, |
|
|
const std::size_t |
bytes |
|
) |
| const |
|
inline |
Definition at line 153 of file socks.cpp.
155 static_assert(1 <
sizeof(
self_->buffer_),
"buffer too small for v4 response");
160 self.buffer_size_ = std::min(bytes,
sizeof(
self.buffer_));
164 else if (
self.
buffer().size() <
sizeof(v4_header))
166 else if (
self.buffer_[0] != 0)
168 else if (
self.buffer_[1] != v4_request_granted)
epee::span< const std::uint8_t > buffer() const noexcept
std::shared_ptr< client > self_
error
Possible errors with socks communication. Defined in https://www.openssh.com/txt/socks4.protocol.
const T & move(const T &t)
client(stream_type::socket &&proxy, socks::version ver)
◆ self_
| std::shared_ptr<client> net::socks::client::completed::self_ |
The documentation for this struct was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.0.0.4/src/net/socks.cpp