Struct BackendAsyncmsg::EndpointHash
Defined in File BackendAsyncmsg.hpp
Nested Relationships
This struct is a nested type of Class BackendAsyncmsg.
Struct Documentation
-
struct EndpointHash
Hashing function for TCP endpoints to store them in a hash map.
Public Static Functions
-
static inline std::size_t hash(const boost::asio::ip::tcp::endpoint &endpoint)
Hashes a TCP endpoint.
- Parameters:
endpoint – The TCP endpoint to be hashed
- Returns:
The hash value
-
static inline bool equal(const boost::asio::ip::tcp::endpoint &lhs, const boost::asio::ip::tcp::endpoint &rhs)
Compares two TCP endpoints for equality.
- Parameters:
lhs – The first TCP endpoint
rhs – The second TCP endpoint
- Returns:
True if the endpoints are equal, false otherwise
-
static inline std::size_t hash(const boost::asio::ip::tcp::endpoint &endpoint)