Class of addresses of TCP.
More...
#include <msgpack_rpc/addresses/tcp_address.h>
|
| IAddress () noexcept=default |
| Constructor.
|
Class of addresses of TCP.
Definition at line 44 of file tcp_address.h.
◆ TCPAddress() [1/2]
msgpack_rpc::addresses::TCPAddress::TCPAddress |
( |
std::string_view | ip_address, |
|
|
std::uint16_t | port_number ) |
Constructor.
- Parameters
-
[in] | ip_address | IP address. |
[in] | port_number | Port number. |
Definition at line 35 of file tcp_address.cpp.
◆ TCPAddress() [2/2]
msgpack_rpc::addresses::TCPAddress::TCPAddress |
( |
AsioTCPAddress | address | ) |
|
|
explicit |
Constructor.
- Parameters
-
[in] | address | Address in asio library. |
Definition at line 39 of file tcp_address.cpp.
◆ asio_address()
const AsioTCPAddress & msgpack_rpc::addresses::TCPAddress::asio_address |
( |
| ) |
const |
|
nodiscard |
Get the address in asio library.
- Returns
- Address in asio library.
Definition at line 53 of file tcp_address.cpp.
◆ ip_address()
std::string msgpack_rpc::addresses::TCPAddress::ip_address |
( |
| ) |
const |
|
nodiscard |
Get the IP address.
- Returns
- IP address.
Definition at line 41 of file tcp_address.cpp.
◆ operator!=()
bool msgpack_rpc::addresses::TCPAddress::operator!= |
( |
const TCPAddress & | right | ) |
const |
Compare with an address.
- Parameters
-
[in] | right | Right-hand-side address. |
- Return values
-
true | Two addresses are different. |
false | Two addresses are same. |
Definition at line 59 of file tcp_address.cpp.
◆ operator==()
bool msgpack_rpc::addresses::TCPAddress::operator== |
( |
const TCPAddress & | right | ) |
const |
Compare with an address.
- Parameters
-
[in] | right | Right-hand-side address. |
- Return values
-
true | Two addresses are same. |
false | Two addresses are different. |
Definition at line 55 of file tcp_address.cpp.
◆ port_number()
std::uint16_t msgpack_rpc::addresses::TCPAddress::port_number |
( |
| ) |
const |
|
nodiscard |
Get the port number.
- Returns
- Port number.
Definition at line 45 of file tcp_address.cpp.
◆ to_string()
std::string msgpack_rpc::addresses::TCPAddress::to_string |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ to_uri()
URI msgpack_rpc::addresses::TCPAddress::to_uri |
( |
| ) |
const |
|
nodiscardoverridevirtual |
◆ address_
The documentation for this class was generated from the following files: