MCPcopy Create free account
hub / github.com/apache/brpc / SocketMapFind

Function SocketMapFind

src/brpc/socket_map.cpp:105–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105int SocketMapFind(const SocketMapKey& key, SocketId* id) {
106 SocketMap* m = get_client_side_socket_map();
107 if (m) {
108 return m->Find(key, id);
109 }
110 return -1;
111}
112
113void SocketMapRemove(const SocketMapKey& key) {
114 SocketMap* m = get_client_side_socket_map();

Callers 4

TEST_FFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
ResetServersMethod · 0.85

Calls 2

FindMethod · 0.45

Tested by 3

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68