|
| 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.
154 {
155 static_assert(1 <
sizeof(
self_->buffer_),
"buffer too small for v4 response");
156
158 {
160 self.buffer_size_ = std::min(bytes, sizeof(self.buffer_));
161
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)
170 else
171 self.done(boost::system::error_code{}, std::move(
self_));
172 }
173 }
client(stream_type::socket &&proxy, socks::version ver)
error
Possible errors with socks communication. Defined in https://www.openssh.com/txt/socks4....
std::shared_ptr< client > self_
◆ 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.1.3.1-build/electroneum-5.1.3.1/src/net/socks.cpp