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

Method async_connect

implementation/endpoints/src/local_socket_uds_impl.cpp:73–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void local_socket_uds_impl::async_connect(connect_handler _handler) {
74 std::unique_lock lock{socket_mtx_};
75 if (socket_->is_open()) {
76 socket_->async_connect(peer_endpoint_, std::move(_handler));
77 } else {
78 boost::asio::post(io_context_, [h = std::move(_handler)] { h(boost::asio::error::fault); });
79 }
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_};

Callers 3

connectMethod · 0.45
connectMethod · 0.45
connect_unlockMethod · 0.45

Calls 1

is_openMethod · 0.45

Tested by

no test coverage detected