|
| SystemAddress () |
| Constructors.
|
|
unsigned char | GetIPVersion (void) const |
|
void | SetToLoopback (void) |
| Call SetToLoopback(), with whatever IP version is currently held. Defaults to IPV4.
|
|
void | SetToLoopback (unsigned char ipVersion) |
|
bool | IsLoopback (void) const |
|
bool | FromString (const char *str, char portDelineator='|', int ipVersion=0) |
|
bool | FromStringExplicitPort (const char *str, unsigned short port, int ipVersion=0) |
| Same as FromString(), but you explicitly set a port at the same time.
|
|
void | CopyPort (const SystemAddress &right) |
| Copy the port from another SystemAddress structure.
|
|
bool | EqualsExcludingPort (const SystemAddress &right) const |
| Returns if two system addresses have the same IP (port is not checked)
|
|
unsigned short | GetPort (void) const |
| Returns the port in host order (this is what you normally use)
|
|
void | SetPort (unsigned short s) |
| Sets the port. The port value should be in host order (this is what you normally use)
|
|
void | SetBinaryAddress (const char *str, char portDelineator=':') |
| Old version, for crap platforms that don't support newer socket functions.
|
|
void | ToString_Old (bool writePort, char *dest, char portDelineator=':') const |
| Old version, for crap platforms that don't support newer socket functions.
|
|
Network address for a system.
Corresponds to a network address
This is not necessarily a unique identifier. For example, if a system has both LAN and internet connections, the system may be identified by either one, depending on who is communicating
Therefore, you should not transmit the SystemAddress over the network and expect it to identify a system, or use it to connect to that system, except in the case where that system is not behind a NAT (such as with a dedciated server) Use RakNetGUID for a unique per-instance of RakPeer to identify systems