ConnectionData Class Reference

#include <ConnectionData.h>

List of all members.

Public Member Functions

 ConnectionData ()
virtual ~ConnectionData ()

Public Attributes

TCPsocket socket
SDL_Thread * thread
Connectionself
bool running
IPaddress address
Uint32 id


Detailed Description

Contains useful data for a generic connection.

It is mainly used to create a new thread for the Connection.

Author:
stonedz
Since:
pre-alpha
See also:
startListen

Definition at line 19 of file ConnectionData.h.


Constructor & Destructor Documentation

ConnectionData::ConnectionData  ) 
 

Constructor.

Author:
stonedz
Since:
pre-alpha

Definition at line 3 of file ConnectionData.cpp.

00004 {
00005 }

ConnectionData::~ConnectionData  )  [virtual]
 

Virtual destructor.

Definition at line 7 of file ConnectionData.cpp.

00008 {
00009 }


Member Data Documentation

IPaddress ConnectionData::address
 

Address and port of the server.

Definition at line 39 of file ConnectionData.h.

Uint32 ConnectionData::id
 

Unique id of the connection.

Todo:
TODO To be implemented -> Implements a thread-safe id-generator.

Definition at line 46 of file ConnectionData.h.

Referenced by Client::Client(), and Server::Server().

bool ConnectionData::running
 

State of the connection.

Definition at line 38 of file ConnectionData.h.

Referenced by Client::Client(), ClientFSM::Disconnect(), and Server::Server().

Connection* ConnectionData::self
 

Pointer to itself.

Definition at line 37 of file ConnectionData.h.

Referenced by ClientFSM::chat(), Client::Client(), Server::Server(), and Connection::startThread().

TCPsocket ConnectionData::socket
 

Connection's TCP socket.

Definition at line 35 of file ConnectionData.h.

Referenced by Client::Client(), ClientFSM::ClientFSM(), ClientFSM::Disconnect(), ClientFSM::Login(), ClientFSM::Ready(), ClientFSM::SendKA_ACK(), Server::Server(), and Server::startListen().

SDL_Thread* ConnectionData::thread
 

Pointer to the thread the connection is running in.

Definition at line 36 of file ConnectionData.h.

Referenced by Client::Client(), Connection::getThread(), Server::Server(), and Server::startListen().


The documentation for this class was generated from the following files:
Generated on Mon Dec 3 04:30:13 2007 for lo-testserver by  doxygen 1.3.9.1