MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / send

Method send

src/ipc/asio_transport.cpp:99–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97 timeout_{timeout} {}
98
99void AsioTransport::send(std::span<const std::byte> data) {
100 asio::error_code ec;
101 // asio::write loops until all bytes are written or an error occurs.
102 asio::write(socket_, asio::buffer(data.data(), data.size()), ec);
103 if (ec) {
104 throw_socket_timeout_error("write");
105 }
106}
107
108std::size_t AsioTransport::receive(std::span<std::byte> dst) {
109 bool done = false;

Callers 6

request_plotMethod · 0.45
notify_removedMethod · 0.45
send_to_windowMethod · 0.45

Calls 3

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected