Proud::NamedAddrPort Struct Reference

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
 

Detailed Description

It's similar to AddrPort but string can be inserted in m_addr.

  • At string, either 111.222.111.222 format or game.aaa.com format can be added.
  • This structure is needed since AddrPort can only store 111.222.111.222 format.

Member Function Documentation

static NamedAddrPort PROUD_API Proud::NamedAddrPort::From ( const AddrPort src)
static

Generate this object from AddrPort object

static NamedAddrPort PROUD_API Proud::NamedAddrPort::FromAddrPort ( String  addr,
uint16_t  port 
)
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?

bool Proud::NamedAddrPort::operator!= ( const NamedAddrPort rhs) const
inline

Comparison Operator

bool Proud::NamedAddrPort::operator== ( const NamedAddrPort rhs) const
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.

Member Data Documentation

String Proud::NamedAddrPort::m_addr

Host name

  • At string, either 111.222.111.222 format or game.aaa.com format can be added.
uint16_t Proud::NamedAddrPort::m_port

Port Value

NamedAddrPort PROUD_API Proud::NamedAddrPort::Unassigned
static

Empty Address