Public Member Functions | Static Public Member Functions | Public Attributes

SystemAddress Struct Reference

Network address for a system. More...

#include <RakNetTypes.h>

List of all members.

Public Member Functions

 SystemAddress ()
 SystemAddress (const char *a, unsigned short b)
 SystemAddress (unsigned int a, unsigned short b)
const char * ToString (bool writePort=true) const
void ToString (bool writePort, char *dest) const
void SetBinaryAddress (const char *str)
SystemAddressoperator= (const SystemAddress &input)
bool operator== (const SystemAddress &right) const
bool operator!= (const SystemAddress &right) const
bool operator> (const SystemAddress &right) const
bool operator< (const SystemAddress &right) const

Static Public Member Functions

static int size ()

Public Attributes

uint32_t binaryAddress
 The peer address from inet_addr.
unsigned short port
 The port number.
SystemIndex systemIndex

Detailed Description

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
Use RakNetGUID for a unique per-instance of RakPeer to identify systems

Definition at line 68 of file RakNetTypes.h.


Constructor & Destructor Documentation

SystemAddress::SystemAddress (  ) 

Definition at line 113 of file RakNetTypes.cpp.

SystemAddress::SystemAddress ( const char *  a,
unsigned short  b 
) [explicit]

Definition at line 114 of file RakNetTypes.cpp.

Here is the call graph for this function:

SystemAddress::SystemAddress ( unsigned int  a,
unsigned short  b 
) [explicit]

Definition at line 115 of file RakNetTypes.cpp.


Member Function Documentation

bool SystemAddress::operator!= ( const SystemAddress right  )  const

Definition at line 63 of file RakNetTypes.cpp.

bool SystemAddress::operator< ( const SystemAddress right  )  const

Definition at line 73 of file RakNetTypes.cpp.

SystemAddress& SystemAddress::operator= ( const SystemAddress input  )  [inline]

Definition at line 95 of file RakNetTypes.h.

bool SystemAddress::operator== ( const SystemAddress right  )  const

Definition at line 58 of file RakNetTypes.cpp.

bool SystemAddress::operator> ( const SystemAddress right  )  const

Definition at line 68 of file RakNetTypes.cpp.

void SystemAddress::SetBinaryAddress ( const char *  str  ) 

Definition at line 119 of file RakNetTypes.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static int SystemAddress::size (  )  [inline, static]

Definition at line 80 of file RakNetTypes.h.

Here is the caller graph for this function:

const char * SystemAddress::ToString ( bool  writePort = true  )  const

Definition at line 77 of file RakNetTypes.cpp.

Here is the caller graph for this function:

void SystemAddress::ToString ( bool  writePort,
char *  dest 
) const

Definition at line 87 of file RakNetTypes.cpp.

Here is the call graph for this function:


Member Data Documentation

The peer address from inet_addr.

Definition at line 75 of file RakNetTypes.h.

unsigned short SystemAddress::port

The port number.

Definition at line 77 of file RakNetTypes.h.

Definition at line 79 of file RakNetTypes.h.


The documentation for this struct was generated from the following files: