Communication address specified by IP, port, and protocol.
More...
#include <Address.hpp>
Communication address specified by IP, port, and protocol.
◆ Address() [1/2]
| fipa::services::transports::Address::Address |
( |
| ) |
|
|
inline |
◆ Address() [2/2]
| fipa::services::transports::Address::Address |
( |
const std::string & |
ip, |
|
|
uint16_t |
port, |
|
|
const std::string & |
protocol = "udt" |
|
) |
| |
◆ fromString()
| Address fipa::services::transports::Address::fromString |
( |
const std::string & |
address | ) |
|
|
static |
Create address from string
- Returns
- std::invalid_argument if address is malformatted
◆ operator!=()
| bool fipa::services::transports::Address::operator!= |
( |
const Address & |
other | ) |
const |
|
inline |
◆ operator<()
| bool fipa::services::transports::Address::operator< |
( |
const Address & |
other | ) |
const |
Less than operator, to allow usage of this structure with std::set
- Returns
- true if other address is greater, false otherwise
◆ operator==()
| bool fipa::services::transports::Address::operator== |
( |
const Address & |
other | ) |
const |
Equals operator
- Returns
- True if equal, false otherwise
◆ toString()
| std::string fipa::services::transports::Address::toString |
( |
| ) |
const |
Convert address to string
- Returns
- Address as string
◆ ip
| std::string fipa::services::transports::Address::ip |
◆ port
| uint16_t fipa::services::transports::Address::port |
◆ protocol
| std::string fipa::services::transports::Address::protocol |
The documentation for this class was generated from the following files:
- /build/rock-master-18.09-multiagent-fipa-services-0.20171213/src/transports/Address.hpp
- /build/rock-master-18.09-multiagent-fipa-services-0.20171213/src/transports/Address.cpp