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

Method halt

implementation/endpoints/src/local_server.cpp:69–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void local_server::halt() {
70 std::scoped_lock const lock{mtx_};
71 if (is_value(state_).any_of(state_e::HALTED, state_e::STOPPED)) {
72 VSOMEIP_WARNING_P << "Rejecting the attempt to stop the server when it is already stopped";
73 return;
74 }
75 state_ = state_e::HALTED;
76 ++lc_count_;
77 boost::system::error_code ec;
78 acceptor_->cancel(ec);
79 if (ec) {
80 VSOMEIP_ERROR_P << "Error encountered: " << ec.message() << ", self: " << this;
81 }
82}
83
84void local_server::block_from(const boost::asio::ip::address& _address) {
85 std::scoped_lock const lock{mtx_};

Callers 1

reconnectMethod · 0.80

Calls 4

is_valueClass · 0.85
any_ofMethod · 0.80
messageMethod · 0.80
cancelMethod · 0.45

Tested by

no test coverage detected