| 257 | } |
| 258 | |
| 259 | [[nodiscard]] bool socket_manager::bind_socket(fake_tcp_socket_handle const& _handle, boost::asio::ip::tcp::endpoint const& _ep, fd_t _fd) { |
| 260 | auto const lock = std::scoped_lock(mtx_); |
| 261 | if (fail_on_bind_.count(_handle.get_app_name()) == 0) { |
| 262 | endpoint_tcp_to_fd_[_ep] = _fd; |
| 263 | return true; |
| 264 | } |
| 265 | |
| 266 | return false; |
| 267 | } |
| 268 | |
| 269 | [[nodiscard]] bool socket_manager::bind_socket(std::shared_ptr<fake_udp_socket_handle> _handle, boost::asio::ip::udp::endpoint const& _ep, |
| 270 | fd_t _fd) { |
no test coverage detected