![]() |
MySQL 8.0.43
Source Code Documentation
|
Defines an IP address with port number
More...
#include <tcp_address.h>
Public Member Functions | |
| TCPAddress ()=default | |
| TCPAddress (std::string address, uint16_t tcp_port) | |
| TCPAddress (const TCPAddress &other)=default | |
| TCPAddress (TCPAddress &&other)=default | |
| TCPAddress & | operator= (const TCPAddress &other)=default |
| TCPAddress & | operator= (TCPAddress &&other)=default |
| std::string | address () const |
| uint16_t | port () const |
| void | port (uint16_t p) |
| std::string | str () const |
| Returns the address as a string. More... | |
Private Attributes | |
| std::string | addr_ |
| Network name IP. More... | |
| uint16_t | port_ {} |
| TCP port. More... | |
Friends | |
| bool | operator== (const TCPAddress &left, const TCPAddress &right) |
| Compares two addresses for equality. More... | |
| bool | operator< (const TCPAddress &left, const TCPAddress &right) |
| Function for performing comparison of TCPAddresses. More... | |
Defines an IP address with port number
|
default |
|
inline |
|
default |
|
default |
|
inline |
|
default |
|
default |
|
inline |
|
inline |
| std::string mysql_harness::TCPAddress::str | ( | ) | const |
Returns the address as a string.
Returns the address as a string.
|
friend |
Function for performing comparison of TCPAddresses.
|
friend |
Compares two addresses for equality.
|
private |
Network name IP.
|
private |
TCP port.