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

Method InFlightRequestKey

cpp/shard/Shard.cpp:689–695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

687 uint64_t portIp;
688
689 InFlightRequestKey(uint64_t requestId_, IpPort clientAddr) :
690 requestId(requestId_)
691 {
692 sockaddr_in addr;
693 clientAddr.toSockAddrIn(addr);
694 portIp = ((uint64_t) addr.sin_port << 32) | ((uint64_t) addr.sin_addr.s_addr);
695 }
696
697 bool operator==(const InFlightRequestKey& other) const {
698 return requestId == other.requestId && portIp == other.portIp;

Callers

nothing calls this directly

Calls 1

toSockAddrInMethod · 0.80

Tested by

no test coverage detected