| 314 | } |
| 315 | |
| 316 | bool PhxBinlogClient::EncodeExportIPInfo(const string &ip, const uint32_t &port, string *encode_buffer) { |
| 317 | phxbinlogsvr::ExportIPInfo export_ipinfo; |
| 318 | export_ipinfo.set_ip(ip); |
| 319 | export_ipinfo.set_port(port); |
| 320 | |
| 321 | return export_ipinfo.SerializeToString(encode_buffer); |
| 322 | } |
| 323 | |
| 324 | bool PhxBinlogClient::DecodeMasterInfo(const string &decode_buffer, string *ip, uint32_t *expire_time, |
| 325 | uint32_t *version) { |
nothing calls this directly
no outgoing calls
no test coverage detected