| 57 | } |
| 58 | |
| 59 | int 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 | |
| 68 | int PhxBinLogAgent::Process() { |
| 69 | if (server_sockfd_ < 0) { |
nothing calls this directly
no test coverage detected