#include <pbem-server-interaction.h>
Public Member Functions | |
| ASC_PBEM_FileUploadControl (const char *dataParam, const int sizeParam) | |
Public Attributes | |
| int | step |
| int | sent_step |
| const int | size |
| const char * | data |
| ASCString | fileName |
| ASCString | boundary |
| std::vector< ASCString > | parameters |
interface between the game asc by Marting Bickel, and the asc pbem server by Jade Rogalski
example usages:
*** account erstellen
ASC_PBEM asc_pbem( "http://localhost:8080/ascServer/" ); if( asc_pbem.isUsable() && asc_pbem.createAccount( "user", "password", "a@b.c" ) ) { std::cout << "account erstellt, mail unterwegs\n"; }else { std::cout << "account erstellung fehlgeschlagen\n"; }
*** upload eines spielstandes;
char* daten = "miau"; int size = strlen( "miau" ) * sizeof( char ); ASCString fileName = "duell-A-1.ascpbm"; int gameID = 1;
ASC_PBEM asc_pbem( "http://localhost:8080/ascServer/" ); if( asc_pbem.isUsable() && asc_pbem.login( "user", "pw" ) ) { if( asc_pbem.uploadFile( fileName, daten, size, gameID ) ) std::cout << "uploadFile erfolgreich\n"; else std::cout << "uploadFile fehlgeschlagen\n"; }
??? TODO:
Definition at line 63 of file pbem-server-interaction.h.
|
||||||||||||
|
Definition at line 75 of file pbem-server-interaction.h. |
|
|
Definition at line 71 of file pbem-server-interaction.h. Referenced by ASC_PBEM_readInternal(), ASC_PBEM::createGame(), and ASC_PBEM::uploadFile(). |
|
|
Definition at line 69 of file pbem-server-interaction.h. Referenced by ASC_PBEM_readInternal(). |
|
|
Definition at line 70 of file pbem-server-interaction.h. Referenced by ASC_PBEM_readInternal(), ASC_PBEM::createGame(), and ASC_PBEM::uploadFile(). |
|
|
Definition at line 73 of file pbem-server-interaction.h. Referenced by ASC_PBEM_readInternal(), ASC_PBEM::createGame(), and ASC_PBEM::uploadFile(). |
|
|
Definition at line 67 of file pbem-server-interaction.h. Referenced by ASC_PBEM_readInternal(), ASC_PBEM::createGame(), and ASC_PBEM::uploadFile(). |
|
|
Definition at line 68 of file pbem-server-interaction.h. Referenced by ASC_PBEM_readInternal(). |
|
|
Definition at line 66 of file pbem-server-interaction.h. Referenced by ASC_PBEM_readInternal(), ASC_PBEM::createGame(), and ASC_PBEM::uploadFile(). |
1.4.2