MCPcopy Create free account
hub / github.com/XTXMarkets/ternfs / InFlightCDCRequestKey

Method InFlightCDCRequestKey

cpp/cdc/CDC.cpp:114–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 uint64_t portIp;
113
114 InFlightCDCRequestKey(uint64_t requestId_, IpPort clientAddr) :
115 requestId(requestId_)
116 {
117 sockaddr_in addr;
118 clientAddr.toSockAddrIn(addr);
119 portIp = ((uint64_t) addr.sin_port << 32) | ((uint64_t) addr.sin_addr.s_addr);
120 }
121
122 bool operator==(const InFlightCDCRequestKey& other) const {
123 return requestId == other.requestId && portIp == other.portIp;

Callers

nothing calls this directly

Calls 1

toSockAddrInMethod · 0.80

Tested by

no test coverage detected