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

Method CreateSocket

src/brpc/socket_map.cpp:68–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66class GlobalSocketCreator : public SocketCreator {
67public:
68 int CreateSocket(const SocketOptions& opt, SocketId* id) override {
69 SocketOptions sock_opt = opt;
70 sock_opt.health_check_interval_s = FLAGS_health_check_interval;
71 return get_client_side_messenger()->Create(sock_opt, id);
72 }
73};
74
75static void CreateClientSideSocketMap() {

Callers 1

InsertMethod · 0.45

Calls 1

CreateMethod · 0.45

Tested by

no test coverage detected