Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Static Public Member Functions | Public Attributes
RakNet::AddressOrGUID Struct Reference

#include <RakNetTypes.h>

List of all members.

Public Member Functions

 AddressOrGUID ()
 AddressOrGUID (const SystemAddress &input)
 AddressOrGUID (Packet *packet)
 AddressOrGUID (const RakNetGUID &input)
 AddressOrGUID (const AddressOrGUID &input)
SystemIndex GetSystemIndex (void) const
bool IsUndefined (void) const
AddressOrGUIDoperator= (const RakNetGUID &input)
AddressOrGUIDoperator= (const AddressOrGUID &input)
AddressOrGUIDoperator= (const SystemAddress &input)
bool operator== (const AddressOrGUID &right) const
void SetUndefined (void)
void ToString (bool writePort, char *dest) const
const char * ToString (bool writePort=true) const

Static Public Member Functions

static unsigned long ToInteger (const AddressOrGUID &aog)

Public Attributes

RakNetGUID rakNetGuid
SystemAddress systemAddress

Detailed Description

Definition at line 347 of file RakNetTypes.h.


Constructor & Destructor Documentation

RakNet::AddressOrGUID::AddressOrGUID ( ) [inline]

Definition at line 359 of file RakNetTypes.h.

{}
RakNet::AddressOrGUID::AddressOrGUID ( const AddressOrGUID input) [inline]

Definition at line 360 of file RakNetTypes.h.

References rakNetGuid, and systemAddress.

    {
        rakNetGuid=input.rakNetGuid;
        systemAddress=input.systemAddress;
    }
RakNet::AddressOrGUID::AddressOrGUID ( const SystemAddress input) [inline]
RakNet::AddressOrGUID::AddressOrGUID ( Packet packet)
RakNet::AddressOrGUID::AddressOrGUID ( const RakNetGUID input) [inline]

Member Function Documentation

SystemIndex RakNet::AddressOrGUID::GetSystemIndex ( void  ) const [inline]

Definition at line 352 of file RakNetTypes.h.

References RakNet::UNASSIGNED_RAKNET_GUID().

{if (rakNetGuid!=UNASSIGNED_RAKNET_GUID) return rakNetGuid.systemIndex; else return systemAddress.systemIndex;}
bool RakNet::AddressOrGUID::IsUndefined ( void  ) const [inline]
AddressOrGUID& RakNet::AddressOrGUID::operator= ( const SystemAddress input) [inline]

Definition at line 383 of file RakNetTypes.h.

References RakNet::UNASSIGNED_RAKNET_GUID().

    {
        rakNetGuid=UNASSIGNED_RAKNET_GUID;
        systemAddress=input;
        return *this;
    }
AddressOrGUID& RakNet::AddressOrGUID::operator= ( const RakNetGUID input) [inline]

Definition at line 390 of file RakNetTypes.h.

References RakNet::UNASSIGNED_SYSTEM_ADDRESS.

AddressOrGUID& RakNet::AddressOrGUID::operator= ( const AddressOrGUID input) [inline]

Definition at line 376 of file RakNetTypes.h.

References rakNetGuid, and systemAddress.

    {
        rakNetGuid=input.rakNetGuid;
        systemAddress=input.systemAddress;
        return *this;
    }
bool RakNet::AddressOrGUID::operator== ( const AddressOrGUID right) const [inline]
void RakNet::AddressOrGUID::SetUndefined ( void  ) [inline]
static unsigned long RakNet::AddressOrGUID::ToInteger ( const AddressOrGUID aog) [static]
const char* RakNet::AddressOrGUID::ToString ( bool  writePort = true) const
void RakNet::AddressOrGUID::ToString ( bool  writePort,
char *  dest 
) const

Member Data Documentation

Definition at line 349 of file RakNetTypes.h.

Referenced by AddressOrGUID(), operator=(), and operator==().

Definition at line 350 of file RakNetTypes.h.

Referenced by AddressOrGUID(), operator=(), and operator==().


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

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net