26 using boost::hash_combine;
27 using boost::hash_range;
28 using boost::asio::ip::address;
47 hash_combine(val, addr.to_v4().to_ulong());
49 else if (addr.is_v6())
52 const util::Ip_address_v6::bytes_type& addr_bytes = addr.to_v6().to_bytes();
53 hash_range(val, addr_bytes.begin(), addr_bytes.end());
72 return remote_endpoint.
hash();
Flow module containing the API and implementation of the Flow network protocol, a TCP-inspired stream...
size_t hash_value(const Sequence_number &seq_num)
Free function that returns seq_num.hash(); has to be a free function named hash_value for boost....
bool operator==(const Remote_endpoint &lhs, const Remote_endpoint &rhs)
Whether lhs is equal to rhs.
std::ostream & operator<<(std::ostream &os, const Congestion_control_selector::Strategy_choice &strategy_choice)
Serializes a Peer_socket_options::Congestion_control_strategy_choice enum to a standard ostream – the...
Represents the remote endpoint of a Flow-protocol connection; identifies the UDP endpoint of the remo...
size_t hash() const
Hash value of this Remote_endpoint for unordered_*<>.
util::Udp_endpoint m_udp_endpoint
UDP address (IP address/UDP port) where the Node identified by this endpoint bound its low-level UDP ...
flow_port_t m_flow_port
The logical Flow port within the Node for the particular connection identified by this endpoint.