Overview   Project   Class   Tree   Deprecated   Index 
Center
FRAMES    NO FRAMES

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z _

_

_agentsList - member variable in class Server
List of agents
_buf - member variable in class RefCountBufferImp
_dataLock - member variable in class Server
Lock for center parameters
_e - member variable in class ServerError
Error code
_file_lock - member variable in class Log
Lock for the log file
_imp - member variable in class RefCountBuffer
_ip - member variable in class Client
Client's IP
_last_switch - member variable in class Server
Time of last switching
_log - member variable in class Log
Log file
_log - member variable in class Server
Log object
_MasterSock - member variable in class Server
Main socket
_nickname - member variable in class Client
Client's nick
_num_of_threads - member variable in class Server
Number of current running threads
_params - member variable in class Server
Center parameters
_port - member variable in class Client
Client's port
_port - member variable in class Server
Port of center
_ptr - member variable in class RefCountPtr
_public_key - member variable in class Client
Client's public key
_r - member variable in class AgentList
_ref_count - member variable in class RefCountObj
_server - member variable in struct ThreadParameters
Server object
_size - member variable in class RefCountBufferImp
_socket - member variable in struct ThreadParameters
Socket of client
_switchingTime - member variable in class Server
Period of time for internal update
_w - member variable in class AgentList

A

add_ref() - member function in class RefCountObj
address - member variable in struct AGENT
Agent's Address (Ip + Port)
ADDRESS - struct in center_code
Agent address structure
AGENT - struct in center_code
A player (agent) information structure
agent_list - member variable in typedef AgentList::agent_list
AgentList - class in center_code
This class holds the server's agents lists and includes methods for handling them, perform switch etc
AgentList() - constructor in class AgentList
Default Ctor
~AgentList() - constructor in class AgentList
Dtor
AgentList(ifstream&) - constructor in class AgentList
The Ctor reads data (R list) from file (recovery)
AgentList::agent_list - typedef in center_code
Agent list
AgentList::key - typedef in center_code
Map key (IP&PORT)
AgentList::list_const_iter - typedef in center_code
Const iterator for agent list
AgentList::list_iter - typedef in center_code
Iterator for agent list

B

bool() - member function in (center_code globals)
bool() - member function in class RefCountPtr

C

CENTER_PARAMS - struct in center_code
Parameters of center (which we send to agent)
center_time - member variable in struct CENTER_PARAMS
Global time
Client - class in center_code
This class holds basic client data
Client() - constructor in class Client
Default Ctor
~Client() - constructor in class Client
Dtor
Client(const struct ADDRESS&) - constructor in class Client
The Ctor makes a client from an ADDRESS
Client(const struct AGENT&) - constructor in class Client
The Ctor makes a client from an AGENT
Client(ifstream&) - constructor in class Client
The Ctor makes a client from file
clone() - member function in class RefCountBuffer
ComputeExist() - member function in class AgentList
Returns a list of agents exist in system Note: should be used only before switching lists
ComputeQuited() - member function in class AgentList
Returns a list of agents that issued "quit" request
convert(unsigned int) - member function in class Log
Converts ip number to dotted representation
CreateSocketAndListen() - member function in class Server
Create the server's main socket and listen

G

get_data() - member function in class RefCountBuffer
get_size() - member function in class RefCountBuffer
GetErrorCode() - member function in class ServerError
Returns the error code
GetGlobalTime() - member function in class Server
Returns the system global-time
getIp() - member function in class Client
IP accessor
getList() - member function in class AgentList
Returns a copy of the R list
getNick() - member function in class Client
Nick accessor
getPort() - member function in class Client
PORT accessor
getPublicKey() - member function in class Client
PublicKey accessor

H

HandleGetListRequest(char*,SOCKET) - member function in class Server
Handle get-list request
HandleQuitRequest(char*) - member function in class Server
HandleScreenThread(LPVOID) - member function in (center_code globals)
HandleSingleClient(SOCKET) - member function in class Server
Handle request of single client
HandleSingleClientThread(LPVOID) - member function in (center_code globals)
Main thread for handling a single client

I

initWinsockDll() - member function in class Server
Initialize windows sockets
ip - member variable in struct ADDRESS
Agent's IP

K

keepalive_time - member variable in struct CENTER_PARAMS
Period of time in which agents should request list
key - member variable in typedef AgentList::key

L

list_const_iter - member variable in typedef AgentList::list_const_iter
list_iter - member variable in typedef AgentList::list_iter
list_use_time - member variable in struct CENTER_PARAMS
Time when agents can use the new list
Log - class in center_code
Logs server activity and agentlist info
Log() - constructor in class Log
Default constructor - opens log.
~Log() - constructor in class Log
Destructor
Log(const string&) - constructor in class Log
Constructor - opens specified file as log

M

main(int,char*[]) - member function in (center_code globals)
makeKey(int,short) - member function in class AgentList
Makes a map key for a client

N

nickname - member variable in struct AGENT
Agent's nick
NICKNAME_SIZE - member variable in typedef NICKNAME_SIZE
NICKNAME_SIZE - typedef in center_code

O

operator<<(ostream&,const ServerError&) - member function in (center_code globals)
operator*() - member function in class RefCountPtr
operator+(const RefCountBuffer&,const RefCountBuffer&) - member function in (center_code globals)
operator->() - member function in class RefCountPtr
operator=(const RefCountBuffer&) - member function in class RefCountBuffer
operator=(const RefCountObj&) - member function in class RefCountObj
operator=(const RefCountPtr< T >&) - member function in class RefCountPtr

P

p_hMutex - member variable in class SyncObj
The mutex
port - member variable in struct ADDRESS
Agent's PORT
pubkey - member variable in struct AGENT
Agent's public-key
PUBLIC_KEY_SIZE - member variable in typedef PUBLIC_KEY_SIZE
PUBLIC_KEY_SIZE - typedef in center_code

R

read(ifstream&) - member function in class Client
Reads client from a file
read(ifstream&) - member function in class Server
Reads server's data from file
read(ifstream&) - member function in class AgentList
Reads data from file (recovery)
RefCountBuffer - class in center_code
~RefCountBuffer() - constructor in class RefCountBuffer
RefCountBuffer(const RefCountBuffer&) - constructor in class RefCountBuffer
RefCountBuffer(unsigned int,const char*) - constructor in class RefCountBuffer
RefCountBufferImp - class in center_code
~RefCountBufferImp() - constructor in class RefCountBufferImp
RefCountBufferImp(unsigned int,const char*) - constructor in class RefCountBufferImp
RefCountObj - class in center_code
RefCountObj() - constructor in class RefCountObj
~RefCountObj() - constructor in class RefCountObj
RefCountObj(const RefCountObj&) - constructor in class RefCountObj
RefCountPtr - class in center_code
~RefCountPtr() - constructor in class RefCountPtr
RefCountPtr(const RefCountPtr< T >&) - constructor in class RefCountPtr
RefCountPtr(T*) - constructor in class RefCountPtr
ReleaseObj() - member function in class SyncObj
Release mutex
remove_ref() - member function in class RefCountObj
removeClient(const Client&) - member function in class AgentList
Removes a client from W list
reply_time - member variable in struct CENTER_PARAMS
Period of time in which agents must finish reply
RequestObj() - member function in class SyncObj
Request mutex
route_length - member variable in struct CENTER_PARAMS
Length of msg-send route

S

Server - class in center_code
Main software class - serving clients
Server() - constructor in class Server
Server default constructor
~Server() - constructor in class Server
Server default destructor
ServerError - class in center_code
This class includes methods for error handling We use this class to create objects for Throw call
ServerError(int) - constructor in class ServerError
Default Ctor
setIp(const int) - member function in class Client
IP set function
setPort(const short) - member function in class Client
PORT set function
Start() - member function in class Server
Starts the server
SyncObj - class in center_code
Base class for object that require syncronized access ( Mutial exclusive access ) every object of this type supports 2 synchronization methods : RequestObj() - Wait until the object is free ( no timeout ) ReleaseObj() - Free the object for other users.
SyncObj() - constructor in class SyncObj
Default Ctor (creates mutex)
~SyncObj() - constructor in class SyncObj
Dtor (destroys mutex)

T

ThreadParameters - struct in center_code
This struct holds parameters for client handle thread
tick_time - member variable in struct CENTER_PARAMS
Period of time in which agents can send msg

U

updateClient(const Client&) - member function in class AgentList
Updates a client in W list Returns TRUE if its a new client
updateList() - member function in class AgentList
Updates R list with W list, and cleans W

W

write(ofstream&) - member function in class AgentList
Writes data to flie (recovery)
write(ofstream&) - member function in class Server
Writes server's data to file
write(ofstream&) - member function in class Client
Writes client to a file
WriteExist(AgentList::list_const_iter,AgentList::list_const_iter) - member function in class Log
Writes existing agents to log file
WriteMsg(const string&) - member function in class Log
Writes msg to log
WriteQuits(AgentList::list_const_iter,AgentList::list_const_iter) - member function in class Log
Writes which agents exist in system
WriteRegister(struct ADDRESS,bool) - member function in class Log
Writes register (get-list) event
WriteServerEnd() - member function in class Log
Writes server-end event
WriteServerStart() - member function in class Log
Writes server-start event
WriteSwitch() - member function in class Log
Writes server-switching event
WriteTimeDate() - member function in class Log
Writes time and date to log
WriteUnRegister(struct ADDRESS) - member function in class Log
Writes unregister event

 Overview   Project   Class   Tree   Deprecated   Index 
Center
FRAMES    NO FRAMES