MCPcopy Create free account
hub / github.com/COVESA/vsomeip / async_receive

Method async_receive

implementation/endpoints/src/local_socket_uds_impl.cpp:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void local_socket_uds_impl::async_receive(boost::asio::mutable_buffer _buffer, read_handler _r_handler) {
83 std::unique_lock lock{socket_mtx_};
84 if (socket_->is_open()) {
85 socket_->async_receive(_buffer, std::move(_r_handler));
86 } else {
87 boost::asio::post(io_context_, [h = std::move(_r_handler)] { h(boost::asio::error::fault, 0); });
88 }
89}
90
91void local_socket_uds_impl::async_send(std::vector<uint8_t> _data, write_handler _w_handle) {
92 std::unique_lock lock{socket_mtx_};

Callers

nothing calls this directly

Calls 1

is_openMethod · 0.45

Tested by

no test coverage detected