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

Method stop

implementation/endpoints/src/local_server.cpp:51–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void local_server::stop() {
52 std::scoped_lock const lock{mtx_};
53 if (state_ == state_e::STOPPED) {
54 VSOMEIP_WARNING_P << "Rejecting the attempt to stop the server when it is already stopped";
55 return;
56 }
57 state_ = state_e::STOPPED;
58 ++lc_count_;
59 boost::system::error_code ec;
60 acceptor_->close(ec);
61 if (ec) {
62 VSOMEIP_ERROR_P << "Error encountered: " << ec.message() << ", self: " << this;
63 }
64 if (debounce_) {
65 debounce_->stop();
66 }
67}
68
69void local_server::halt() {
70 std::scoped_lock const lock{mtx_};

Callers 3

accept_cbkMethod · 0.45
add_connectionMethod · 0.45
receive_cbkMethod · 0.45

Calls 2

messageMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected