Public Member Functions | |
PROUD_API void | OverwriteHostNameIfExists (const String &hostName) |
bool | operator== (const NamedAddrPort &rhs) const |
bool | operator!= (const NamedAddrPort &rhs) const |
String PROUD_API | ToString () const |
bool | IsUnicastEndpoint () |
Static Public Member Functions | |
static NamedAddrPort PROUD_API | FromAddrPort (String addr, uint16_t port) |
static NamedAddrPort PROUD_API | From (const AddrPort &src) |
Public Attributes | |
String | m_addr |
uint16_t | m_port |
Static Public Attributes | |
static NamedAddrPort PROUD_API | Unassigned |
It's similar to AddrPort but string can be inserted in m_addr.
|
static |
Generate this object from AddrPort object
|
static |
Generate this object from a specific hostname and port number.
bool Proud::NamedAddrPort::IsUnicastEndpoint | ( | ) |
Is it correct address that point 1 port of 1 host instead of broadcast address, null address?
|
inline |
Comparison Operator
|
inline |
Comparison Operator
PROUD_API void Proud::NamedAddrPort::OverwriteHostNameIfExists | ( | const String & | hostName | ) |
Appoint a new host name with the string inside of hostname.
String PROUD_API Proud::NamedAddrPort::ToString | ( | ) | const |
This method makes the contents into string.
String Proud::NamedAddrPort::m_addr |
Host name
uint16_t Proud::NamedAddrPort::m_port |
Port Value
|
static |
Empty Address