#include <C4Network2Address.h>
Public Member Functions | |
C4Network2Address ()=default | |
C4Network2Address (C4NetIO::addr_t addr, C4Network2IOProtocol eProtocol) | |
C4Network2Address (const C4Network2Address &addr) | |
void | operator= (const C4Network2Address &addr) |
bool | operator== (const C4Network2Address &addr) const |
const C4NetIO::addr_t & | getAddr () const |
C4NetIO::addr_t & | getAddr () |
bool | isIPNull () const |
uint16_t | getPort () const |
C4Network2IOProtocol | getProtocol () const |
StdStrBuf | toString () const |
void | SetAddr (C4NetIO::addr_t naddr) |
void | SetIP (C4NetIO::addr_t ip) |
void | SetPort (uint16_t iPort) |
void | SetProtocol (C4Network2IOProtocol enProtocol) |
void | CompileFunc (StdCompiler *pComp) |
Protected Attributes | |
C4NetIO::addr_t | addr |
C4Network2IOProtocol | eProtocol {P_NONE} |
Definition at line 22 of file C4Network2Address.h.
|
default |
|
inline |
Definition at line 27 of file C4Network2Address.h.
|
inline |
void C4Network2Address::CompileFunc | ( | StdCompiler * | pComp | ) |
Definition at line 29 of file C4Network2Address.cpp.
References addr, C4NetIO::EndpointAddress::Clear(), eProtocol, StdCompiler::isDeserializer(), mkDefaultAdapt(), P_NONE, P_TCP, P_UDP, StdCompiler::SEP_PART2, StdCompiler::Separator(), and StdCompiler::Value().
|
inline |
|
inline |
Definition at line 45 of file C4Network2Address.h.
References addr.
Referenced by C4Network2Client::DoConnectAttempt(), C4Network2Client::DoTCPSimultaneousOpen(), C4Network2ClientList::HandlePacket(), operator==(), and C4Network2Client::SendAddresses().
|
inline |
Definition at line 49 of file C4Network2Address.h.
References addr, and C4NetIO::EndpointAddress::GetPort().
|
inline |
Definition at line 50 of file C4Network2Address.h.
References eProtocol.
Referenced by C4Network2Client::DoConnectAttempt(), C4Network2Client::DoTCPSimultaneousOpen(), and operator==().
|
inline |
Definition at line 48 of file C4Network2Address.h.
References addr, and C4NetIO::EndpointAddress::IsNull().
Referenced by C4Network2Client::DoTCPSimultaneousOpen(), and C4Network2ClientList::HandlePacket().
|
inline |
Definition at line 35 of file C4Network2Address.h.
References addr, SetAddr(), and SetProtocol().
bool C4Network2Address::operator== | ( | const C4Network2Address & | addr | ) | const |
Definition at line 61 of file C4Network2Address.cpp.
References addr, eProtocol, getAddr(), and getProtocol().
|
inline |
Definition at line 54 of file C4Network2Address.h.
References addr, and C4NetIO::EndpointAddress::AsIPv4().
Referenced by operator=(), and C4Network2Reference::SetSourceAddress().
|
inline |
Definition at line 56 of file C4Network2Address.h.
References addr, C4NetIO::EndpointAddress::AsIPv4(), and C4NetIO::EndpointAddress::SetAddress().
Referenced by C4Network2ClientList::HandlePacket().
|
inline |
Definition at line 57 of file C4Network2Address.h.
References addr, and C4NetIO::EndpointAddress::SetPort().
|
inline |
Definition at line 58 of file C4Network2Address.h.
References eProtocol.
Referenced by operator=().
StdStrBuf C4Network2Address::toString | ( | ) | const |
Definition at line 51 of file C4Network2Address.cpp.
References addr, eProtocol, FormatString(), StdStrBuf::getData(), P_TCP, P_UDP, and C4NetIO::EndpointAddress::ToString().
Referenced by C4StartupNetListEntry::SetReference(), and C4Network2ClientDlg::UpdateText().
|
protected |
Definition at line 41 of file C4Network2Address.h.
Referenced by CompileFunc(), getAddr(), getPort(), isIPNull(), operator=(), operator==(), SetAddr(), SetIP(), SetPort(), and toString().
|
protected |
Definition at line 42 of file C4Network2Address.h.
Referenced by CompileFunc(), getProtocol(), operator==(), SetProtocol(), and toString().