| 494 | } |
| 495 | |
| 496 | tcp_server_endpoint_impl::connection::ptr |
| 497 | tcp_server_endpoint_impl::connection::create(const std::weak_ptr<tcp_server_endpoint_impl>& _server, std::uint32_t _max_message_size, |
| 498 | std::uint32_t _buffer_shrink_threshold, bool _magic_cookies_enabled, |
| 499 | boost::asio::io_context& _io, std::chrono::milliseconds _send_timeout) { |
| 500 | const std::uint32_t its_initial_receveive_buffer_size = VSOMEIP_SOMEIP_HEADER_SIZE + 8 + MAGIC_COOKIE_SIZE + 8; |
| 501 | return ptr(new connection(_server, _max_message_size, its_initial_receveive_buffer_size, _buffer_shrink_threshold, |
| 502 | _magic_cookies_enabled, _io, _send_timeout)); |
| 503 | } |
| 504 | |
| 505 | tcp_socket& tcp_server_endpoint_impl::connection::get_socket() { |
| 506 | return *socket_; |
nothing calls this directly
no outgoing calls
no test coverage detected