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

Method EncodeExportIPInfo

phxbinlogsvr/framework/rpccomm/phxbinlog_client.cpp:316–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316bool 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
324bool PhxBinlogClient::DecodeMasterInfo(const string &decode_buffer, string *ip, uint32_t *expire_time,
325 uint32_t *version) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected