#include <SPCommsManagerClass.h>
Inheritance diagram for SecurePlayLibrary::SPCommsManagerClass:

Public Member Functions | |
| SPCommsManagerClass () | |
| ~SPCommsManagerClass () | |
| SPCommsManagerClass (SPGameInterface *gameobj, SPLogInterface *log, SPSecurityManagerInterface *security) | |
| void | startCommsManager () |
| bool | setSecurityPolicy (bool sign, bool encrypt) |
| SPAbstractCommsInterface * | getComms (string commsID) |
| bool | addComms (string commsID) |
| bool | removeComms (string cid) |
| bool | getEncryptPolicy () |
| bool | getSignaturePolicy () |
| bool | endGameComms () |
| bool | setPlayerComms (string pid, string cid, bool rflag) |
| void | removePlayer (string playerID) |
| string | UpdateCommsStatus () |
| bool | sendMessage (SPRootTransactionClass *sendingobject, string sender, vector< string > receivers, bool encryptflag, bool privateflag, string messagetype, vector< string > messagebody, vector< string > altmessage) |
| bool | receiveMessage (SPMessageClass *incoming) |
| void | logError () |
| string | getCommsStatus () |
| bool | isPlayerInternal (string pid) |
| SPGameInterface * | getGameinstance () |
| vector< string > | getInternalplayerIDList () |
| SPLogInterface * | getMessagelog () |
| map< string, string > | getPlayerCommsList () |
| vector< string > | getPrcommsIDList () |
| map< string, SPAbstractCommsInterface * > | getPrcommsServList () |
| string | getGameID () |
| SecurePlayClass * | getSecurePlay () |
| SPSecurityManagerInterface * | getSecurityManager () |
| vector< byte > | getHashText (string plainText, string algorithm) |
| vector< byte > | SPcreateBHash (string input, string gameid) |
| vector< byte > | SPcreateBSignature (string senderID, vector< byte > input, string gameid) |
| string | SPcreateHash (string input, string gameid) |
| string | SPcreateSignature (string senderID, string input, string gameid) |
| vector< string > | SPdecrypt (vector< string > input, string senderID, vector< string > recvrs, string gameID, string messageID) |
| vector< string > | SPencrypt (vector< string > input, string senderID, vector< string > recvrs, string gameID, string messageID) |
| string | SPtransform (string input, string gameid) |
| bool | SPverifySignature (vector< byte > sigToVerify, string senderID, vector< byte > testhash, string gameid) |
| bool | SPverifySignature (string signature, string senderID, string testhash, string gameid) |
Public Attributes | |
| const string | extendedversion |
| const string | releaseversion |
Private Member Functions | |
| void | configureCommsManager (SPGameInterface *gameobj, SPLogInterface *log, SPSecurityManagerInterface *security) |
| SPCommsManagerClass (const SPCommsManagerClass &p) | |
| operator= (const SPCommsManagerClass &p) | |
Private Attributes | |
| SPGameInterface * | gameinstance |
| vector< string > | prcommsIDList |
| map< string, SPAbstractCommsInterface * > | prcommsServList |
| vector< string > | internalplayerIDList |
| bool | prencryptpolicy |
| bool | prsignaturepolicy |
| SPLogInterface * | messagelog |
| map< string, string > | playerCommsList |
| string | prcommsstatus |
| SPSecurityManagerInterface * | securityManager |
|
|
Private Copy Constructor that protects this class from being copied. |
|
|
Default Constructor. |
|
|
Default Destructor. |
|
||||||||||||||||
|
Overloaded Constructor.
|
|
|
This method safely adds an available comms service to the game instance.
|
|
||||||||||||||||
|
This method configures this Comms Manager Class.
|
|
|
This method safely ends the game comms session. NOTE: it will not stop incoming messages, only outgoing or relayed messages.
|
|
|
This method safely returns one of the comms services objects associated with this game instance.
|
|
|
Gets the comms status.
|
|
|
This method returns the encryption policy flag.
|
|
|
Getter function that returns gameID associated with the Comms Manager Class
|
|
|
Getter function that returns the property:
|
|
||||||||||||
|
This method gets the hashed string
|
|
|
Getter function that returns the property: internalplayerIDList
|
|
|
Getter function that returns the property: messagelog
|
|
|
Getter function that returns the property: playerCommsList
|
|
|
Getter function that returns the property: prcommsIDList
|
|
|
Getter function that returns the property: prcommsServList
|
|
|
Getter function that returns SecurePlayClass associated with Comms Manager Class
|
|
|
Getter function that returns Security Manager associated with Comms Manager Class
|
|
|
This method returns the Signature Policy flag for the game instance.
|
|
|
Checks to see if the player is internal to the game.
|
|
|
This is a shell function for future use. |
|
|
Private = operator that protects this class from being copied. |
|
|
This method safely receives and routes incoming messages. Only proper, valid messages will be sent on to transactions for processing.
Implements SecurePlayLibrary::SPCommsManagerCommsInterface. |
|
|
This method safely removes comms service from the game instance.
|
|
|
This method safely removes a player from the game instance's comms.
|
|
||||||||||||||||||||||||||||||||||||
|
This method manages actually sending messages to other game instances via communication services objects. Also, for private messages, it sends an alternate message to the parties not recieving the main message.
|
|
||||||||||||||||
|
This method safely associates a Player with a comms service and enables relay support for that player via that comms service.
|
|
||||||||||||
|
This method safely sets the security policy (encryption and signatures, for the game instance).
|
|
||||||||||||
|
||||||||||||||||
|
||||||||||||
|
||||||||||||||||
|
||||||||||||||||||||||||
|
||||||||||||||||||||||||
|
||||||||||||
|
||||||||||||||||||||
|
||||||||||||||||||||
|
|
initialize the message log with licensing information |
|
|
This method reviews and updates the status of the comms instance.
|
|
|
Developer extended version. |
|
|
This is the object pointer for the game instance object associated with the comms object. |
|
|
This property holds the array of the IDs of the internal players |
|
|
This property holds the pointer to the message log object. |
|
|
This associative array holds the mapping between the various game players and their associated comms services IDs. NOTE: internal players have a virtual comms service "internal". |
|
|
This property holds the array of comms services IDs. Comms services IDs are the public means to access a comms service object. |
|
|
This associative array holds the mapping between the various comms services IDs and the comms services objects, themsselves. |
|
|
This is a text string that provides the current status of the comms object. |
|
|
This flag holds the encryption policy flag for the game instance. |
|
|
This flag holds the overall signature policy for the game. |
|
|
IT GlobalSecure release version. |
|
|
Security Manager associated with this library. |