MCPcopy Create free account
hub / github.com/CasparCG/server / write_some

Method write_some

src/protocol/util/AsyncEventServer.cpp:260–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258 }
259
260 void write_some(std::string&& data) // always called from the asio-service-thread
261 {
262 is_writing_ = true;
263 auto str = spl::make_shared<std::string>(std::move(data));
264 socket_->async_write_some(
265 boost::asio::buffer(str->data(), str->size()),
266 std::bind(
267 &connection::handle_write, shared_from_this(), str, std::placeholders::_1, std::placeholders::_2));
268 }
269
270 friend struct AsyncEventServer::implementation;
271};

Callers

nothing calls this directly

Calls 3

bufferClass · 0.50
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected