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

Class InFlightCDCRequestKey

cpp/cdc/CDC.cpp:110–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110struct InFlightCDCRequestKey {
111 uint64_t requestId;
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;
124 }
125};
126
127template <>
128struct std::hash<InFlightCDCRequestKey> {

Callers 2

_processCDCMessagesFunction · 0.85
_processStepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected