MCPcopy Create free account
hub / github.com/COVESA/vsomeip / ~connection

Method ~connection

implementation/endpoints/src/tcp_server_endpoint_impl.cpp:480–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478}
479
480tcp_server_endpoint_impl::connection::~connection() {
481
482 auto its_server(server_.lock());
483 if (its_server) {
484 auto its_routing_host(its_server->routing_host_.lock());
485 if (its_routing_host) {
486 its_routing_host->remove_subscriptions(its_server->local_.port(), remote_address_, remote_port_);
487 }
488 }
489
490 // ensure socket close() before boost destructor
491 // otherwise boost asio removes linger, which may leave connection in TIME_WAIT
492 VSOMEIP_INFO_P << instance_name_ << "endpoint > " << this;
493 stop();
494}
495
496tcp_server_endpoint_impl::connection::ptr
497tcp_server_endpoint_impl::connection::create(const std::weak_ptr<tcp_server_endpoint_impl>& _server, std::uint32_t _max_message_size,

Callers

nothing calls this directly

Calls 2

lockMethod · 0.80
remove_subscriptionsMethod · 0.45

Tested by

no test coverage detected