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

Method bind_socket

test/network_tests/fake_socket_tests/helpers/socket_manager.cpp:259–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers 2

bindMethod · 0.80
bindMethod · 0.80

Calls 7

countMethod · 0.80
insertMethod · 0.80
endMethod · 0.80
get_app_nameMethod · 0.45
sizeMethod · 0.45
replace_pipeMethod · 0.45

Tested by

no test coverage detected