| 49 | } |
| 50 | |
| 51 | std::shared_ptr<local_endpoint> local_endpoint::create_server_ep(local_endpoint_context const& _context, local_endpoint_params _params, |
| 52 | std::shared_ptr<local_receive_buffer> _receive_buffer) { |
| 53 | auto p = std::make_shared<local_endpoint>(hidden{}, _context, std::move(_params), std::move(_receive_buffer), state_e::CONNECTED); |
| 54 | if (!p->is_allowed()) { |
| 55 | p->stop(false); |
| 56 | return nullptr; |
| 57 | } |
| 58 | return p; |
| 59 | } |
| 60 | |
| 61 | std::shared_ptr<local_endpoint> local_endpoint::create_client_ep(local_endpoint_context const& _context, local_endpoint_params _params) { |
| 62 | auto buffer = std::make_shared<local_receive_buffer>(_context.configuration_->get_max_message_size_local(), |
nothing calls this directly
no test coverage detected