MCPcopy Create free account
hub / github.com/3rdparty/libprocess / get_persistent_socket

Function get_persistent_socket

src/process.cpp:1713–1716  ·  view source on GitHub ↗

Tests can declare this function and use it to fetch the socket FD's for links managed by the `SocketManager`. Without explicitly declaring this function, it is not visible. This is the preferred behavior as we do not want applications to have easy access to managed FD's.

Source from the content-addressed store, hash-verified

1711// behavior as we do not want applications to have easy access to
1712// managed FD's.
1713Option<int_fd> get_persistent_socket(const UPID& to)
1714{
1715 return socket_manager->get_persistent_socket(to);
1716}
1717
1718
1719Option<int_fd> SocketManager::get_persistent_socket(const UPID& to)

Callers 1

TEST_FFunction · 0.85

Calls 1

get_persistent_socketMethod · 0.80

Tested by 1

TEST_FFunction · 0.68