SLikeNet 0.1.3

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Attributes | List of all members
SLNet::RakPeer::RemoteSystemStruct Struct Reference

`#include <slikenet/peer.h>`

## Public Types

enum | ConnectMode { NO_ACTION, DISCONNECT_ASAP, DISCONNECT_ASAP_SILENTLY, DISCONNECT_ON_NO_ACK, REQUESTED_CONNECTION, HANDLING_CONNECTION_REQUEST, UNVERIFIED_SENDER, CONNECTED }

## Public Attributes

bool | isActive
SystemAddress | systemAddress
SystemAddress | myExternalSystemAddress
| Their external IP on the internet.
SystemAddress | theirInternalSystemAddress [MAXIMUM_NUMBER_OF_INTERNAL_IDS]
| Your external IP on the internet, from their perspective.
ReliabilityLayer | reliabilityLayer
| Their internal IP, behind the LAN.
bool | weInitiatedTheConnection
| The reliability layer associated with this player.
PingAndClockDifferential | pingAndClockDifferential [PING_TIMES_ARRAY_SIZE]
| True if we started this connection via Connect. False if someone else connected to us.
SLNet::Time | pingAndClockDifferentialWriteIndex
| last x ping times and calculated clock differentials with it
unsigned short | lowestPing
| The index we are writing into the pingAndClockDifferential circular buffer.
SLNet::Time | nextPingTime
| The lowest ping value encountered.
SLNet::Time | lastReliableSend
| When to next ping this player.
SLNet::Time | connectionTime
| When did the last reliable send occur. Reliable sends must occur at least once every timeoutTime/2 units to notice disconnects.
RakNetGUID | guid
| connection time, if active.
int | MTUSize
RakNetSocket2 * | rakNetSocket
SystemIndex | remoteSystemIndex
enum SLNet::RakPeer::RemoteSystemStruct::ConnectMode | connectMode

## Detailed Description

Definition at line 668 of file peer.h.

## Member Enumeration Documentation

enum SLNet::RakPeer::RemoteSystemStruct::ConnectMode

Enumerator:

  NO_ACTION |
  DISCONNECT_ASAP |
  DISCONNECT_ASAP_SILENTLY |
  DISCONNECT_ON_NO_ACK |
  REQUESTED_CONNECTION |
  HANDLING_CONNECTION_REQUEST |
  UNVERIFIED_SENDER |
  CONNECTED |

Definition at line 698 of file peer.h.

## Member Data Documentation

SLNet::Time SLNet::RakPeer::RemoteSystemStruct::connectionTime

When did the last reliable send occur. Reliable sends must occur at least once every timeoutTime/2 units to notice disconnects.

Definition at line 681 of file peer.h.

Referenced by SLNet::RakPeer::AssignSystemAddressToRemoteSystemList(), and SLNet::RakPeer::RunUpdateCycle().

enum SLNet::RakPeer::RemoteSystemStruct::ConnectMode SLNet::RakPeer::RemoteSystemStruct::connectMode

Referenced by SLNet::RakPeer::AssignSystemAddressToRemoteSystemList(), SLNet::RakPeer::ParseConnectionRequestPacket(), SLNet::ProcessOfflineNetworkPacket(), SLNet::RakPeer::RunUpdateCycle(), and SLNet::RakPeer::Startup().

RakNetGUID SLNet::RakPeer::RemoteSystemStruct::guid

connection time, if active.

Definition at line 683 of file peer.h.

Referenced by SLNet::RakPeer::AssignSystemAddressToRemoteSystemList(), SLNet::RakPeer::CloseConnectionInternal(), SLNet::RakPeer::GetGUIDFromIndex(), SLNet::RakPeer::GetGuidFromSystemAddress(), SLNet::RakPeer::GetIndexFromGuid(), SLNet::RakPeer::GetSystemAddressFromGuid(), SLNet::RakPeer::GetSystemIndexFromGuid(), SLNet::RakPeer::RunUpdateCycle(), and SLNet::RakPeer::Startup().

bool SLNet::RakPeer::RemoteSystemStruct::isActive

Definition at line 670 of file peer.h.

Referenced by SLNet::RakPeer::AssignSystemAddressToRemoteSystemList(), SLNet::RakPeer::CloseConnectionInternal(), SLNet::RakPeer::GetIndexFromGuid(), SLNet::RakPeer::GetIndexFromSystemAddress(), SLNet::ProcessOfflineNetworkPacket(), SLNet::RakPeer::RunUpdateCycle(), SLNet::RakPeer::Shutdown(), and SLNet::RakPeer::Startup().

SLNet::Time SLNet::RakPeer::RemoteSystemStruct::lastReliableSend

When to next ping this player.

Definition at line 680 of file peer.h.

Referenced by SLNet::RakPeer::AssignSystemAddressToRemoteSystemList(), SLNet::RakPeer::RunUpdateCycle(), and SLNet::RakPeer::SendImmediate().

unsigned short SLNet::RakPeer::RemoteSystemStruct::lowestPing

The index we are writing into the pingAndClockDifferential circular buffer.

Definition at line 678 of file peer.h.

Referenced by SLNet::RakPeer::AssignSystemAddressToRemoteSystemList(), SLNet::RakPeer::GetLowestPing(), SLNet::RakPeer::OnConnectedPong(), and SLNet::RakPeer::RunUpdateCycle().

int SLNet::RakPeer::RemoteSystemStruct::MTUSize

Definition at line 684 of file peer.h.

Referenced by SLNet::RakPeer::AssignSystemAddressToRemoteSystemList(), SLNet::RakPeer::GetMTUSize(), SLNet::ProcessNetworkPacket(), SLNet::RakPeer::RunUpdateCycle(), and SLNet::RakPeer::Startup().

SystemAddress SLNet::RakPeer::RemoteSystemStruct::myExternalSystemAddress

Their external IP on the internet.

Definition at line 672 of file peer.h.

Referenced by SLNet::RakPeer::AssignSystemAddressToRemoteSystemList(), SLNet::RakPeer::GetExternalID(), SLNet::RakPeer::RunUpdateCycle(), and SLNet::RakPeer::Startup().

SLNet::Time SLNet::RakPeer::RemoteSystemStruct::nextPingTime

The lowest ping value encountered.

Definition at line 679 of file peer.h.

Referenced by SLNet::RakPeer::AssignSystemAddressToRemoteSystemList(), and SLNet::RakPeer::RunUpdateCycle().

PingAndClockDifferential SLNet::RakPeer::RemoteSystemStruct::pingAndClockDifferential[PING_TIMES_ARRAY_SIZE]

True if we started this connection via Connect. False if someone else connected to us.

Definition at line 676 of file peer.h.

Referenced by SLNet::RakPeer::AssignSystemAddressToRemoteSystemList(), SLNet::RakPeer::GetAveragePing(), SLNet::RakPeer::GetClockDifferentialInt(), SLNet::RakPeer::GetLastPing(), and SLNet::RakPeer::OnConnectedPong().

SLNet::Time SLNet::RakPeer::RemoteSystemStruct::pingAndClockDifferentialWriteIndex

last x ping times and calculated clock differentials with it

Definition at line 677 of file peer.h.

Referenced by SLNet::RakPeer::AssignSystemAddressToRemoteSystemList(), SLNet::RakPeer::GetLastPing(), and SLNet::RakPeer::OnConnectedPong().

RakNetSocket2* SLNet::RakPeer::RemoteSystemStruct::rakNetSocket

Definition at line 686 of file peer.h.

Referenced by SLNet::RakPeer::AssignSystemAddressToRemoteSystemList(), SLNet::RakPeer::CloseConnectionInternal(), SLNet::RakPeer::RunUpdateCycle(), and SLNet::RakPeer::Shutdown().

ReliabilityLayer SLNet::RakPeer::RemoteSystemStruct::reliabilityLayer

Their internal IP, behind the LAN.

Definition at line 674 of file peer.h.

Referenced by SLNet::RakPeer::AssignSystemAddressToRemoteSystemList(), SLNet::RakPeer::CloseConnectionInternal(), SLNet::RakPeer::GetStatistics(), SLNet::RakPeer::GetTimeoutTime(), SLNet::RakPeer::ParseConnectionRequestPacket(), SLNet::ProcessNetworkPacket(), SLNet::ProcessOfflineNetworkPacket(), SLNet::RakPeer::RunUpdateCycle(), SLNet::RakPeer::SendImmediate(), SLNet::RakPeer::SetTimeoutTime(), SLNet::RakPeer::Shutdown(), and SLNet::RakPeer::Startup().

SystemIndex SLNet::RakPeer::RemoteSystemStruct::remoteSystemIndex

Definition at line 687 of file peer.h.

Referenced by SLNet::RakPeer::RunUpdateCycle(), and SLNet::RakPeer::Startup().

SystemAddress SLNet::RakPeer::RemoteSystemStruct::systemAddress

Definition at line 671 of file peer.h.

Referenced by SLNet::RakPeer::DereferenceRemoteSystem(), SLNet::RakPeer::GetClientPublicKeyFromSystemAddress(), SLNet::RakPeer::GetGuidFromSystemAddress(), SLNet::RakPeer::GetIndexFromSystemAddress(), SLNet::RakPeer::GetRemoteSystemIndex(), SLNet::RakPeer::GetSystemAddressFromGuid(), SLNet::RakPeer::GetSystemAddressFromIndex(), SLNet::RakPeer::OnConnectionRequest(), SLNet::RakPeer::ReferenceRemoteSystem(), SLNet::RakPeer::RemoveFromActiveSystemList(), SLNet::RakPeer::RunUpdateCycle(), and SLNet::RakPeer::Startup().

SystemAddress SLNet::RakPeer::RemoteSystemStruct::theirInternalSystemAddress[MAXIMUM_NUMBER_OF_INTERNAL_IDS]

Your external IP on the internet, from their perspective.

Definition at line 673 of file peer.h.

Referenced by SLNet::RakPeer::GetInternalID(), and SLNet::RakPeer::RunUpdateCycle().

bool SLNet::RakPeer::RemoteSystemStruct::weInitiatedTheConnection

The reliability layer associated with this player.

Definition at line 675 of file peer.h.

Referenced by SLNet::RakPeer::AssignSystemAddressToRemoteSystemList(), and SLNet::ProcessOfflineNetworkPacket().

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

- Source/include/slikenet/peer.h