#include <pbem-server-interaction.h>
Inheritance diagram for ASC_PBEM:

Public Member Functions | |
| ASC_PBEM (ASCString serverBase) | |
| default constructor: | |
| ~ASC_PBEM () | |
| bool | isUsable () |
| important: check this first after instantiation this class will be false after any | |
| bool | login (ASCString user, ASCString passwd) |
| bool | createAccount (ASCString user, ASCString passwd, ASCString email) |
| bool | activateAccount (ASCString user, ASCString code) |
| bool | uploadFile (ASCString fileName, const char *data, const int size, const int gameID) |
| std::vector< TUserData > | getUserList (bool activeOnly=true) |
| bool | createGame (ASCString fileName, const char *data, const int size, ASCString gameName, ASCString fileNamePattern, char *roles, int *players, int projectID=-1, int turn=1, int currentSlot=1) |
| std::vector< TGameInfo > | getCurrentGamesInfo (bool myTurnOnly) |
| TFileData * | downloadGame (TGameInfo game) |
| bool | logout () |
| bool | isLoggedIn () |
| ASCString | getHeader () |
| ASCString | getBody () |
| int | getStatusCode () |
| std::vector< ASCString > | listPlayers () |
Static Public Attributes | |
| static const char | ROLE_SUPERVISOR = 's' |
| static const char | ROLE_PLAYER = 'p' |
| static const char | ROLE_HIDDEN = 'h' |
|
|
default constructor:
Definition at line 150 of file pbem-server-interaction.cpp. |
|
|
Definition at line 180 of file pbem-server-interaction.cpp. |
|
||||||||||||
|
Definition at line 417 of file pbem-server-interaction.cpp. |
|
||||||||||||||||
|
Definition at line 398 of file pbem-server-interaction.cpp. |
|
||||||||||||||||||||||||||||||||||||||||||||
|
Definition at line 455 of file pbem-server-interaction.cpp. References ASC_PBEM_FileUploadControl::boundary, ASC_PBEM_FileUploadControl::fileName, ASC_PBEM_FileUploadControl::parameters, ASC_PBEM_FileUploadControl::sent_step, and ASC_PBEM_FileUploadControl::step. |
|
|
Definition at line 610 of file pbem-server-interaction.cpp. References ASC_PBEM_writeBuffer(), TGameInfo::currentSaveGameName, TFileData::fileData, TFileData::fileName, TFileData::fileSize, TGameInfo::gameID, and getBody(). |
|
|
Definition at line 697 of file pbem-server-interaction.cpp. Referenced by downloadGame(), getCurrentGamesInfo(), getUserList(), and nmain(). |
|
|
Definition at line 511 of file pbem-server-interaction.cpp. References getBody(). Referenced by nmain(). |
|
|
Definition at line 689 of file pbem-server-interaction.cpp. Referenced by nmain(). |
|
|
Definition at line 705 of file pbem-server-interaction.cpp. Referenced by nmain(). |
|
|
Definition at line 555 of file pbem-server-interaction.cpp. References getBody(). Referenced by listPlayers(). |
|
|
Definition at line 190 of file pbem-server-interaction.cpp. |
|
|
important: check this first after instantiation this class will be false after any
Definition at line 185 of file pbem-server-interaction.cpp. Referenced by nmain(). |
|
|
Reimplemented from ServerInterface. Definition at line 597 of file pbem-server-interaction.cpp. References getUserList(). |
|
||||||||||||
|
Definition at line 381 of file pbem-server-interaction.cpp. Referenced by PBEMServer::getSession(), and nmain(). |
|
|
Definition at line 367 of file pbem-server-interaction.cpp. Referenced by nmain(). |
|
||||||||||||||||||||
|
Definition at line 432 of file pbem-server-interaction.cpp. References ASC_PBEM_FileUploadControl::boundary, ASC_PBEM_FileUploadControl::fileName, ASC_PBEM_FileUploadControl::parameters, ASC_PBEM_FileUploadControl::sent_step, and ASC_PBEM_FileUploadControl::step. |
|
|
Definition at line 132 of file pbem-server-interaction.h. |
|
|
Definition at line 131 of file pbem-server-interaction.h. |
|
|
Definition at line 130 of file pbem-server-interaction.h. |
1.4.2