Photon Fusion 1.1.9

Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
NetCommandConnect Struct Reference

Connect Command used to signal a remote server that a client is trying to connect to it. More...

Static Public Member Functions

static int ClampTokenLength (int tokenLength)
 
static NetCommandConnect Create (NetConnectionId id, byte *token=null, int tokenLength=0, byte *uniqueId=null)
 
static byte[] GetTokenDataAsArray (NetCommandConnect command)
 
static byte[] GetUniqueIdAsArray (NetCommandConnect command)
 

Public Attributes

NetConnectionId ConnectionId
 
NetCommandHeader Header
 
fixed byte TokenData [TOKEN_MAX_LENGTH_BYTES]
 
int TokenLength
 
fixed byte UniqueId [UNIQUE_ID_LENGTH_BYTES]
 

Static Public Attributes

const int SIZE_BITS = SIZE_BYTES * 8
 
const int SIZE_BYTES = 16 + TOKEN_MAX_LENGTH_BYTES + UNIQUE_ID_LENGTH_BYTES
 
const int TOKEN_MAX_LENGTH_BYTES = 128
 
const int UNIQUE_ID_LENGTH_BYTES = NetConnection.UNIQUE_ID_SIZE
 

Detailed Description

Connect Command used to signal a remote server that a client is trying to connect to it.