#include "SPMessageClass.h"
#include "SPGameClass.h"
#include "SPUtil.h"
Namespaces | |
| namespace | SecurePlayLibrary |
Functions | |
| vector< byte > | SPUBserialize (vector< SPMessageClass * > messages) |
| vector< byte > | SPUBserializesingle (SPMessageClass *message) |
| vector< byte > | SPUBencodeStringArr (vector< string > strArr, int MAXElemLength, int MAXnumElem, int MAXarrLen) |
| SPMessageClass * | SPUBsingledeserialize (vector< byte > mess) |
| vector< string > | SPUBdecodeStringArr (vector< byte > btArr, int MAXEntryLength, int MAXnumElem, int MAXarrLen) |
| vector< SPMessageClass * > | SPUBaddMessArrEl (vector< SPMessageClass * > messes, SPMessageClass *mess) |
| vector< byte > | SPUBserialize (SPMessageClass *message) |
| vector< SPMessageClass * > | SPUBdeserialize (vector< byte > mess) |
Variables | |
| const int | ONEMESSAGE = 1 |
| const int | MULTIMESSAGE = 2 |
| const int | BMAXMESSAGESLENGTH = 4 |
| const int | BMAXNUMMESSAGELENGTH = 1 |
| const int | BMAXSINGLEMESSLENGTH = 1 |
| const int | BMAXRECEIVERCOUNT = 1 |
| const int | BMAXRECEIVERSLENGTH = 1 |
| const int | BMAXNAMELENGTH = 1 |
| const int | BMAXMESSAGEBODYPARTS = 16 |
| const int | BMAXMESSAGEBODYPARTLENGTH = 1 |
| const int | BMAXMESSAGEBODYLENGTH = 16 |
| const int | BMAXSIGNLENGTH = 30 |
|
||||||||||||
|
This is a private method used only in multiple message deserialization method. It takes an array of SPMessageClasses and safely adds another one.
|
|
||||||||||||||||||||
|
This method deserializes a string array form byte array.
|
|
|
This method deserializes multiple messages from binary to Message ojects.
|
|
||||||||||||||||||||
|
This method is used to serialize a string array into byte array.
|
|
|
|
|
|
This method takes several instances of the SPMessageClass and serializes it into byte array.
|
|
|
This method takes an instance of the SPMessageClass and serializes it into a byte array.
|
|
|
This method takes a single serialized message and turns it into an instance of the SPMessageClass
|
|
|
maximum message body length |
|
|
maximum message body part length |
|
|
maximum number of body parts |
|
|
maximum total messages length |
|
|
number of characters lenght allowed in a name |
|
|
maximum number of messages |
|
|
number of receivers allowed |
|
|
maximum total recievers length |
|
|
maximum signature length |
|
|
maximum length of one messages |
|
|
|
|
|
tags that are used to indicate wether the message contains multiple or single message |