MCPcopy Create free account
hub / github.com/Tencent/phxsql / Bind

Method Bind

phxbinlogsvr/core/agent/agent.cpp:59–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59int PhxBinLogAgent::Bind(const char *ip, const int port) {
60 server_sockfd_ = NetIO::Bind(ip, port);
61 if (server_sockfd_ < 0) {
62 ColorLogError("init fail ip %s port %d", ip, port);
63 return SVR_FAIL;
64 }
65 return OK;
66}
67
68int PhxBinLogAgent::Process() {
69 if (server_sockfd_ < 0) {

Callers

nothing calls this directly

Calls 1

ColorLogErrorFunction · 0.85

Tested by

no test coverage detected