|
| void | operator() (const boost::system::error_code error, const std::size_t bytes) |
| |
Definition at line 176 of file socks.cpp.
◆ get_buffer()
| static boost::asio::mutable_buffers_1 net::socks::client::read::get_buffer |
( |
client & |
self | ) |
|
|
inlinestaticnoexcept |
Definition at line 180 of file socks.cpp.
182 static_assert(
sizeof(v4_header) <=
sizeof(
self.buffer_),
"buffer too small for v4 response");
183 return boost::asio::buffer(
self.buffer_,
sizeof(v4_header));
◆ operator()()
| void net::socks::client::read::operator() |
( |
const boost::system::error_code |
error, |
|
|
const std::size_t |
bytes |
|
) |
| |
|
inline |
Definition at line 186 of file socks.cpp.
193 else if (bytes <
self.
buffer().size())
196 boost::asio::async_read(
self.proxy_,
get_buffer(
self),
self.strand_.wrap(completed{std::move(self_)}));
epee::span< const std::uint8_t > buffer() const noexcept
static boost::asio::mutable_buffers_1 get_buffer(client &self) noexcept
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)
std::shared_ptr< client > self_
◆ self_
| std::shared_ptr<client> net::socks::client::read::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