Electroneum
net::socks::client::write Struct Reference

Public Member Functions

void operator() (const boost::system::error_code error)
 

Static Public Member Functions

static boost::asio::const_buffers_1 get_buffer (client const &self) noexcept
 

Public Attributes

std::shared_ptr< clientself_
 

Detailed Description

Definition at line 201 of file socks.cpp.

Member Function Documentation

◆ get_buffer()

static boost::asio::const_buffers_1 net::socks::client::write::get_buffer ( client const &  self)
inlinestaticnoexcept

Definition at line 205 of file socks.cpp.

206  {
207  return boost::asio::buffer(self.buffer_, self.buffer_size_);
208  }
Here is the caller graph for this function:

◆ operator()()

void net::socks::client::write::operator() ( const boost::system::error_code  error)
inline

Definition at line 210 of file socks.cpp.

211  {
212  if (self_)
213  {
214  client& self = *self_;
215  if (error)
216  self.done(error, std::move(self_));
217  else
218  boost::asio::async_write(self.proxy_, get_buffer(self), self.strand_.wrap(read{std::move(self_)}));
219  }
220  }
static boost::asio::const_buffers_1 get_buffer(client const &self) noexcept
Definition: socks.cpp:205
error
Possible errors with socks communication. Defined in https://www.openssh.com/txt/socks4.protocol.
Definition: socks.h:65
const T & move(const T &t)
Definition: gtest-port.h:1317
client(stream_type::socket &&proxy, socks::version ver)
Definition: socks.cpp:223
std::shared_ptr< client > self_
Definition: socks.cpp:203
Here is the call graph for this function:

Member Data Documentation

◆ self_

std::shared_ptr<client> net::socks::client::write::self_

Definition at line 203 of file socks.cpp.


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