|
ITCH 5.0 Market Data Handler 1.0.0
NASDAQ ITCH 5.0 Market Data Feed Handler
|
Generic network endpoint (IP address and port). More...
Generic network endpoint (IP address and port).
Represents a network endpoint consisting of an IP address and port number. Used for both TCP and UDP connections to specify remote server addresses.
The endpoint supports:
#include <core/src/net/Endpoint.h>
Public Member Functions | |
| operator bool () const | |
| Check if endpoint is valid. | |
| bool | operator== (const Endpoint &rhs) const |
| Equality comparison operator. | |
| bool | operator!= (const Endpoint &rhs) const |
| Inequality comparison operator. | |
Public Attributes | |
| std::string | ip_ |
| IP address (IPv4 or IPv6 as string, e.g., "192.168.1.1" or "::1"). | |
| std::uint16_t | port_ = 0 |
| Port number (0-65535, 0 = invalid). | |
|
inlineexplicit |
|
inline |
Inequality comparison operator.
| rhs | Endpoint to compare with |
|
inline |
| std::string b2bits::net::Endpoint::ip_ |
IP address (IPv4 or IPv6 as string, e.g., "192.168.1.1" or "::1").
Referenced by operator bool(), and operator==().
| std::uint16_t b2bits::net::Endpoint::port_ = 0 |
Port number (0-65535, 0 = invalid).
Referenced by operator bool(), and operator==().