Shadowrun: Awakened 29 September 2011 - Build 871
Classes | Enumerations | Variables
cat::sphynx Namespace Reference

Classes

class  Client
class  Collexion
struct  CollexionElement
struct  CollexionElement2
class  CollexionIterator
class  Connexion
class  Map
struct  RecvQueue
struct  SendFrag
struct  SendQueue
class  Server
class  ServerTimer
class  ServerWorker
struct  TempSendNode
class  Transport

Enumerations

enum  HandshakeError { ERR_SERVER_FULL }
enum  HandshakeType {
  C2S_HELLO, S2C_COOKIE, C2S_CHALLENGE, S2C_ANSWER,
  S2C_ERROR
}
enum  StreamMode { STREAM_UNORDERED = 0, STREAM_1 = 1, STREAM_2 = 2, STREAM_3 = 3 }
enum  SuperOpcode {
  SOP_DATA, SOP_FRAG, SOP_ACK, SOP_MTU_PROBE,
  SOP_MTU_SET, SOP_TIME_PING, SOP_TIME_PONG, SOP_DISCO
}

Variables

static const int ANSWER_BYTES = PUBLIC_KEY_BYTES*2
static const int CHALLENGE_BYTES = PUBLIC_KEY_BYTES
static const u32 COLLISION_INCREMENTER = 1013904223
static const u32 COLLISION_INCRINVERSE = 0 - COLLISION_INCREMENTER
static const u32 COLLISION_MULTINVERSE = 4276115653
static const u32 COLLISION_MULTIPLIER = 71*5861 * 4 + 1
static const int HASH_TABLE_MASK = HASH_TABLE_SIZE - 1
static const int HASH_TABLE_SIZE = 32768
static const int MAX_POPULATION = HASH_TABLE_SIZE / 2
static const int PRIVATE_KEY_BYTES = 32
static const u32 PROTOCOL_MAGIC = 0xC47D0001
static const int PUBLIC_KEY_BYTES = 64

Enumeration Type Documentation

Enumerator:
ERR_SERVER_FULL 

Definition at line 227 of file SphynxTransport.hpp.

Enumerator:
C2S_HELLO 
S2C_COOKIE 
C2S_CHALLENGE 
S2C_ANSWER 
S2C_ERROR 

Definition at line 217 of file SphynxTransport.hpp.

Enumerator:
STREAM_UNORDERED 
STREAM_1 
STREAM_2 
STREAM_3 

Definition at line 233 of file SphynxTransport.hpp.

{
    STREAM_UNORDERED = 0,   // Reliable, unordered stream 0
    STREAM_1 = 1,           // Reliable, ordered stream 1
    STREAM_2 = 2,           // Reliable, ordered stream 2
    STREAM_3 = 3            // Reliable, ordered stream 3
};
Enumerator:
SOP_DATA 
SOP_FRAG 
SOP_ACK 
SOP_MTU_PROBE 
SOP_MTU_SET 
SOP_TIME_PING 
SOP_TIME_PONG 
SOP_DISCO 

Definition at line 242 of file SphynxTransport.hpp.

{
    SOP_DATA,           // 0=Data (reliable or unreliable)
    SOP_FRAG,           // 1=Fragment (reliable)
    SOP_ACK,            // 2=ACK (unreliable)
    SOP_MTU_PROBE,      // 3=MTU Probe (unreliable)
    SOP_MTU_SET,        // 4=MTU Set (unordered reliable)
    SOP_TIME_PING,      // 5=Time Ping (unreliable)
    SOP_TIME_PONG,      // 6=Time Pong (unreliable)
    SOP_DISCO,          // 7=Disconnect (unreliable)
};

Variable Documentation

Definition at line 199 of file SphynxTransport.hpp.

Definition at line 198 of file SphynxTransport.hpp.

const u32 cat::sphynx::COLLISION_INCREMENTER = 1013904223 [static]

Definition at line 213 of file SphynxTransport.hpp.

Referenced by cat::sphynx::Collexion< T >::Unlink().

const u32 cat::sphynx::COLLISION_MULTINVERSE = 4276115653 [static]

Definition at line 212 of file SphynxTransport.hpp.

Referenced by cat::sphynx::Collexion< T >::Unlink().

const u32 cat::sphynx::COLLISION_MULTIPLIER = 71*5861 * 4 + 1 [static]

Definition at line 201 of file SphynxTransport.hpp.

const int cat::sphynx::HASH_TABLE_SIZE = 32768 [static]

Definition at line 200 of file SphynxTransport.hpp.

const int cat::sphynx::MAX_POPULATION = HASH_TABLE_SIZE / 2 [static]

Definition at line 202 of file SphynxTransport.hpp.

const int cat::sphynx::PRIVATE_KEY_BYTES = 32 [static]

Definition at line 197 of file SphynxTransport.hpp.

const u32 cat::sphynx::PROTOCOL_MAGIC = 0xC47D0001 [static]

Definition at line 195 of file SphynxTransport.hpp.

const int cat::sphynx::PUBLIC_KEY_BYTES = 64 [static]

Definition at line 196 of file SphynxTransport.hpp.


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