YAPOG  0.0.1
Yet Another Pokemon Online Game
yse::ClientManager Class Reference

#include <ClientManager.hpp>

Collaboration diagram for yse::ClientManager:

List of all members.

Public Member Functions

 ClientManager ()
 ~ClientManager ()
void AddClient (ClientSession *client)
void RemoveClient (ClientSession *client)
void LaunchReception ()
void Refresh ()
void Dispose ()
void ServerTick (const yap::Time &dt)

Private Member Functions

 DISALLOW_COPY (ClientManager)
void HandleReception ()

Private Attributes

yap::collection::List
< ClientSession * > 
clients_
yap::Mutex clientsMutex_
yap::Thread receptionThread_
bool receptionIsActive_

Static Private Attributes

static const yap::Time DEFAULT_RECEPTION_SLEEP_DELAY

Detailed Description

Definition at line 14 of file ClientManager.hpp.


Constructor & Destructor Documentation

yse::ClientManager::ClientManager ( )

Definition at line 11 of file ClientManager.cpp.

Here is the call graph for this function:

yse::ClientManager::~ClientManager ( )

Definition at line 19 of file ClientManager.cpp.


Member Function Documentation

void yse::ClientManager::AddClient ( ClientSession client)

Definition at line 25 of file ClientManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

yse::ClientManager::DISALLOW_COPY ( ClientManager  )
private
void yse::ClientManager::Dispose ( )

Definition at line 57 of file ClientManager.cpp.

Here is the caller graph for this function:

void yse::ClientManager::HandleReception ( )
private

Definition at line 72 of file ClientManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yse::ClientManager::LaunchReception ( )

Definition at line 41 of file ClientManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yse::ClientManager::Refresh ( )

Definition at line 47 of file ClientManager.cpp.

Here is the caller graph for this function:

void yse::ClientManager::RemoveClient ( ClientSession client)

Definition at line 33 of file ClientManager.cpp.

Here is the call graph for this function:

void yse::ClientManager::ServerTick ( const yap::Time dt)

Definition at line 62 of file ClientManager.cpp.

Here is the caller graph for this function:


Member Data Documentation

yap::collection::List<ClientSession*> yse::ClientManager::clients_
private

Definition at line 39 of file ClientManager.hpp.

yap::Mutex yse::ClientManager::clientsMutex_
private

Definition at line 40 of file ClientManager.hpp.

const yap::Time yse::ClientManager::DEFAULT_RECEPTION_SLEEP_DELAY
staticprivate
Initial value:
yap::Time (0.05f)

Definition at line 37 of file ClientManager.hpp.

bool yse::ClientManager::receptionIsActive_
private

Definition at line 43 of file ClientManager.hpp.

yap::Thread yse::ClientManager::receptionThread_
private

Definition at line 42 of file ClientManager.hpp.


The documentation for this class was generated from the following files: