Main Page   Packages   Class Hierarchy   Alphabetical List   Data Structures   File List   Namespace Members   Data Fields   Globals  

Protocol Class Reference

#include <Protocol.h>

Inheritance diagram for Protocol:

Inheritance graph
[legend]
Collaboration diagram for Protocol:

Collaboration graph
[legend]

Public Methods

 Protocol (Client &c)
bool authenticateClient ()
bool authenticateUser ()
bool attend ()
bool readLibrary ()
bool startGame ()
bool endGame ()
bool queryRules ()
bool downloadGame ()
bool uploadGame ()
bool handShake ()
Platform getPlatform ()
char * getClassName ()
 Returns the name of the current class.


Protected Methods

void setClassName (char *n)
 Call this method when you need to set the name of the class you're creating, typically int it's constructor, remeber that you must set the classname for every clas you create, that way you can have more information while being in a debuging process.


Protected Attributes

Client client
Platform OS

Constructor & Destructor Documentation

Protocol::Protocol Client   c
 

Definition at line 9 of file Protocol.cpp.

References client.


Member Function Documentation

bool Protocol::attend  
 

Definition at line 13 of file Protocol.cpp.

References client, handShake(), and clawsoft.provideCard().

Referenced by Client.run().

bool Protocol::authenticateClient  
 

Definition at line 47 of file Protocol.cpp.

References AUTHENTICATE, client, and NUM_LICS.

bool Protocol.authenticateUser  
 

bool Protocol.downloadGame  
 

bool Protocol.endGame  
 

char * clawsoft.Object::getClassName   [inherited]
 

Returns the name of the current class.

Definition at line 18 of file Object.cpp.

References clawsoft.Object.__cls_name.

Platform Protocol::getPlatform  
 

Definition at line 36 of file Protocol.cpp.

References client, GETPLATFORM, and Platform.

bool Protocol::handShake  
 

Definition at line 43 of file Protocol.cpp.

Referenced by attend().

bool Protocol.queryRules  
 

bool Protocol.readLibrary  
 

void clawsoft.Object::setClassName char *    n [protected, inherited]
 

Call this method when you need to set the name of the class you're creating, typically int it's constructor, remeber that you must set the classname for every clas you create, that way you can have more information while being in a debuging process.

Definition at line 14 of file Object.cpp.

References clawsoft.Object.__cls_name.

Referenced by clawsoft.ArrayOutOfBoundsException.ArrayOutOfBoundsException(), clawsoft.BrokenPipeException.BrokenPipeException(), clawsoft.Dialog.CancelButton.CancelButton(), clawsoft.CantLoadDSOException.CantLoadDSOException(), clawsoft.CantUnloadDSOException.CantUnloadDSOException(), clawsoft.ConnectionRefusedException.ConnectionRefusedException(), clawsoft.ConnectionTimeoutException.ConnectionTimeoutException(), clawsoft.Dialog.Dialog(), clawsoft.DSOException.DSOException(), clawsoft.DSOSymbolException.DSOSymbolException(), clawsoft.ElementNotFoundException.ElementNotFoundException(), clawsoft.Font.Font(), clawsoft.GameSelector.GameSelector(), clawsoft.Dialog.HelpButton.HelpButton(), clawsoft.IOException.IOException(), clawsoft.KeyboardEvent.KeyboardEvent(), clawsoft.LoginDialog.LoginDialog(), clawsoft.Mutex.Mutex(), clawsoft.MutexException.MutexException(), clawsoft.NetworkException.NetworkException(), clawsoft.NetworkUnreachableException.NetworkUnreachableException(), clawsoft.NoMoreTokensException.NoMoreTokensException(), clawsoft.NullPointerException.NullPointerException(), clawsoft.NumberException.NumberException(), clawsoft.Object.Object(), clawsoft.Dialog.OKButton.OKButton(), clawsoft.Plugin.Plugin(), clawsoft.ProcOutOfFileDescriptorsException.ProcOutOfFileDescriptorsException(), Random.Random(), clawsoft.ServerSocket.ServerSocket(), clawsoft.Socket.Socket(), clawsoft.SocketAlreadyBoundedException.SocketAlreadyBoundedException(), clawsoft.SocketAlreadyUsedException.SocketAlreadyUsedException(), clawsoft.SocketUnableToReadException.SocketUnableToReadException(), clawsoft.SocketUnableToWriteException.SocketUnableToWriteException(), clawsoft.SysOutOfFileDescriptorsException.SysOutOfFileDescriptorsException(), clawsoft.TextBox.TextBox(), clawsoft.TextButton.TextButton(), clawsoft.TextField.TextField(), clawsoft.Thread.Thread(), clawsoft.UnableToLockMutexException.UnableToLockMutexException(), clawsoft.UnableToUnlockMutexException.UnableToUnlockMutexException(), and clawsoft.Window.Window().

bool Protocol.startGame  
 

bool Protocol.uploadGame  
 


Field Documentation

Client Protocol.client [protected]
 

Definition at line 18 of file Protocol.h.

Referenced by attend(), authenticateClient(), getPlatform(), and Protocol().

Platform Protocol.OS [protected]
 

Definition at line 19 of file Protocol.h.


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

Powered by:

SourceForge Logo