Shadowrun: Awakened 29 September 2011 - Build 871
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends
cat::sphynx::Connexion Class Reference

#include <SphynxServer.hpp>

Inheritance diagram for cat::sphynx::Connexion:

List of all members.

Public Member Functions

 Connexion ()
void Destroy ()
CAT_INLINE u32 GetKey ()
CAT_INLINE bool IsValid ()
virtual ~Connexion ()

Protected Member Functions

virtual void OnConnect (ThreadPoolLocalStorage *tls)=0
virtual void OnDestroy ()=0
virtual void OnTick (ThreadPoolLocalStorage *tls, u32 now)=0

Protected Attributes

AuthenticatedEncryption _auth_enc
NetAddr _client_addr
u32 _last_recv_tsc
bool _seen_encrypted

Private Member Functions

void OnRawData (ThreadPoolLocalStorage *tls, u8 *data, u32 bytes)
virtual bool PostPacket (u8 *buffer, u32 buf_bytes, u32 msg_bytes, u32 skip_bytes)
bool Tick (ThreadPoolLocalStorage *tls, u32 now)

Private Attributes

u8 _cached_answer [128]
volatile u32 _destroyed
u8 _first_challenge [64]
u32 _key
Connexion_next_delete
ServerWorker_server_worker

Friends

class Map
class Server
class ServerTimer
class ServerWorker

Detailed Description

Definition at line 83 of file SphynxServer.hpp.


Constructor & Destructor Documentation

cat::sphynx::Connexion::Connexion ( )
virtual cat::sphynx::Connexion::~Connexion ( ) [inline, virtual]

Definition at line 92 of file SphynxServer.hpp.

{}

Member Function Documentation

void cat::sphynx::Connexion::Destroy ( )
CAT_INLINE u32 cat::sphynx::Connexion::GetKey ( ) [inline]

Definition at line 114 of file SphynxServer.hpp.

References _key.

{ return _key; }
CAT_INLINE bool cat::sphynx::Connexion::IsValid ( ) [inline]

Definition at line 113 of file SphynxServer.hpp.

References _destroyed.

{ return _destroyed == 0; }
virtual void cat::sphynx::Connexion::OnConnect ( ThreadPoolLocalStorage tls) [protected, pure virtual]
virtual void cat::sphynx::Connexion::OnDestroy ( ) [protected, pure virtual]
void cat::sphynx::Connexion::OnRawData ( ThreadPoolLocalStorage tls,
u8 data,
u32  bytes 
) [private]
virtual void cat::sphynx::Connexion::OnTick ( ThreadPoolLocalStorage tls,
u32  now 
) [protected, pure virtual]
virtual bool cat::sphynx::Connexion::PostPacket ( u8 buffer,
u32  buf_bytes,
u32  msg_bytes,
u32  skip_bytes 
) [private, virtual]
bool cat::sphynx::Connexion::Tick ( ThreadPoolLocalStorage tls,
u32  now 
) [private]

Friends And Related Function Documentation

friend class Map [friend]

Definition at line 86 of file SphynxServer.hpp.

friend class Server [friend]

Definition at line 85 of file SphynxServer.hpp.

friend class ServerTimer [friend]

Definition at line 88 of file SphynxServer.hpp.

friend class ServerWorker [friend]

Definition at line 87 of file SphynxServer.hpp.


Member Data Documentation

Definition at line 125 of file SphynxServer.hpp.

Definition at line 102 of file SphynxServer.hpp.

Definition at line 119 of file SphynxServer.hpp.

Definition at line 95 of file SphynxServer.hpp.

Referenced by IsValid().

Definition at line 101 of file SphynxServer.hpp.

Definition at line 97 of file SphynxServer.hpp.

Referenced by GetKey().

Definition at line 122 of file SphynxServer.hpp.

Definition at line 98 of file SphynxServer.hpp.

Definition at line 124 of file SphynxServer.hpp.

Definition at line 99 of file SphynxServer.hpp.


The documentation for this class 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