qb  2.0.0.0
C++17 Actor Framework
qb Issue Watch Star Fork Follow @isndev
Loading...
Searching...
No Matches
qb::io::transport::udp::identity Struct Reference

Identifies a UDP endpoint, extending qb::io::endpoint with hashing support. More...

#include <udp.h>

Inheritance diagram for qb::io::transport::udp::identity:
Collaboration diagram for qb::io::transport::udp::identity:

Classes

struct  hasher
 Hash function for udp::identity objects. More...

Public Member Functions

 identity ()=default
 Default constructor.
 identity (qb::io::endpoint const &ep)
 Construct from an existing qb::io::endpoint.
bool operator!= (identity const &rhs) const noexcept
 Inequality operator.

Detailed Description

Identifies a UDP endpoint, extending qb::io::endpoint with hashing support.

This structure is used to represent the source or destination of a UDP datagram. It inherits from qb::io::endpoint and adds a custom hasher for use in unordered collections like qb::unordered_map.

Constructor & Destructor Documentation

◆ identity()

qb::io::transport::udp::identity::identity ( qb::io::endpoint const & ep)
inline

Construct from an existing qb::io::endpoint.

Parameters
epThe endpoint to copy identity information from.

Member Function Documentation

◆ operator!=()

bool qb::io::transport::udp::identity::operator!= ( identity const & rhs) const
inlinenoexcept

Inequality operator.

Parameters
rhsRight-hand side identity
Returns
true if identities differ, false otherwise