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

Function SocketMapInsert

src/brpc/socket_map.h:85–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 SocketOptions& opt);
84
85inline int SocketMapInsert(const SocketMapKey& key, SocketId* id,
86 const std::shared_ptr<SocketSSLContext>& ssl_ctx,
87 SocketMode socket_mode,
88 const HealthCheckOption& hc_option) {
89 SocketOptions opt;
90 opt.remote_side = key.peer.addr;
91 opt.initial_ssl_ctx = ssl_ctx;
92 opt.socket_mode = socket_mode;
93 opt.hc_option = hc_option;
94 return SocketMapInsert(key, id, opt);
95}
96
97inline int SocketMapInsert(const SocketMapKey& key, SocketId* id,
98 const std::shared_ptr<SocketSSLContext>& ssl_ctx) {

Callers 4

InitSingleMethod · 0.70
workerFunction · 0.50
TEST_FFunction · 0.50
ResetServersMethod · 0.50

Calls

no outgoing calls

Tested by 2

workerFunction · 0.40
TEST_FFunction · 0.40