MCPcopy Create free account
hub / github.com/boostorg/asio / do_write

Method do_write

example/cpp11/nonblocking/third_party_lib.cpp:57–65  ·  view source on GitHub ↗

Notify that third party library that it should perform its write operation.

Source from the content-addressed store, hash-verified

55
56 // Notify that third party library that it should perform its write operation.
57 void do_write(boost::system::error_code& ec)
58 {
59 if (std::size_t len = socket_.write_some(
60 boost::asio::buffer(write_buffer_), ec))
61 {
62 write_buffer_ = write_buffer_ + len;
63 state_ = boost::asio::buffer_size(write_buffer_) > 0 ? writing : reading;
64 }
65 }
66
67private:
68 tcp::socket& socket_;

Callers 1

do_operationsMethod · 0.45

Calls 3

bufferFunction · 0.85
buffer_sizeFunction · 0.85
write_someMethod · 0.45

Tested by

no test coverage detected