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

Public Member Functions | |
| SPAbstractCommsClass () | |
| ~SPAbstractCommsClass () | |
| virtual bool | setcommsID (string cid) |
| virtual string | getCommsServiceType () |
| virtual bool | addGame (string gid, SPCommsManagerCommsInterface *gamcomobj) |
| virtual bool | removeGame (string gid) |
| virtual bool | APIconfigureCommService () |
| virtual bool | addPlayer (string pid, string gid) |
| virtual bool | removePlayer (string pid, string gid) |
| virtual bool | prsend (string message) |
| virtual void | incoming () |
| virtual bool | prreceive (string message) |
| virtual int | includedPlayerCount (vector< string > playerarray, string gid) |
| virtual int | sendMessage (SPMessageClass *clearmessage, SPMessageClass *alternatemessage) |
| virtual int | sendMessage (vector< string > receivers, SPMessageClass *clearmessage, SPMessageClass *alternatemessage) |
| virtual bool | APIactivate () |
| virtual bool | APIdeactivate () |
| virtual void | logError () |
| virtual string | getCommsID () |
| virtual string | SPserialize (SPMessageClass *message) |
| virtual vector< SPMessageClass * > | SPdeserialize (string message) |
| virtual map< string, vector< string > * > | getGameplayerList () |
| virtual vector< string > | getInternalGameIDList () |
| virtual map< string, SPCommsManagerCommsInterface * > | getPrinternalGameList () |
| virtual bool | isGameInternal (string gid) |
| virtual void | processincoming (SPMessageClass *inmess) |
Public Attributes | |
| string | commstype |
Private Attributes | |
| string | commsID |
| vector< string > | internalGameIDList |
| map< string, vector< string > * > | gameplayerList |
| map< string, SPCommsManagerCommsInterface * > | printernalGameList |
|
|
Default Constructor. |
|
|
Default Destructor |
|
||||||||||||
|
This method adds an internal game to a specific comms service. The connection is to the SPComms class associated with the game to allow incoming messages to be serviced.
Implements SecurePlayLibrary::SPAbstractCommsInterface. |
|
||||||||||||
|
This method adds a player ID of a remote player serviced by this comm service
Implements SecurePlayLibrary::SPAbstractCommsInterface. |
|
|
OPTIONAL - This is a shell method to trigger the activation of a comms service, if necessary.
Reimplemented in SecurePlayLibrary::SPCLocalCommsClass, and SecurePlayLibrary::SPCLocalCommsFileClass. |
|
|
This method configures a comm service instance. The parameters are variable depending on the specific service. (this is a shell method It returns true if successful, false, if not.)
|
|
|
OPTIONAL - This shell method is used to deactivate a comms service once it is no longer needed. Depending on the comms service, this method may not be necessary
Reimplemented in SecurePlayLibrary::SPCLocalCommsClass, and SecurePlayLibrary::SPCLocalCommsFileClass. |
|
|
Getter function that returns the property: commsID
Implements SecurePlayLibrary::SPAbstractCommsInterface. |
|
|
This method returns a unique identifier for the type of comms service instance.
Implements SecurePlayLibrary::SPAbstractCommsInterface. Reimplemented in SecurePlayLibrary::SPCLocalCommsFileClass. |
|
|
Getter function that returns the property: gameplayerList
Implements SecurePlayLibrary::SPAbstractCommsInterface. |
|
|
Getter function that returns the property: internalGameIDList
Implements SecurePlayLibrary::SPAbstractCommsInterface. |
|
|
Getter function that returns the property: printernalGameList
Implements SecurePlayLibrary::SPAbstractCommsInterface. |
|
||||||||||||
|
This method returns a number based on the input array to indicate how many of the input array's player IDs are included in the comms service playerIDList
|
|
|
This is a shell method placeholder for the actual processing of incoming data/datastreams/messages from a network. |
|
|
This method returns whether a game is handled internally by a comms service
Implements SecurePlayLibrary::SPAbstractCommsInterface. |
|
|
This is a shell for future error log. |
|
|
|
|
|
This standard method handles incoming serialized messages that have been separated out of incoming data streams by the incoming method. It parses them into Message Objects and passes them on to the Game Instance.
|
|
|
This is a shell method for the actual transmission of a serialized message over a network using a specific communications transport.
Reimplemented in SecurePlayLibrary::SPCLocalCommsClass, and SecurePlayLibrary::SPCLocalCommsFileClass. |
|
|
This method removes the association of a game with the comms service. NOTE: actually the association that is removed is with the game instance's SPCommsManager class instance.
Implements SecurePlayLibrary::SPAbstractCommsInterface. |
|
||||||||||||
|
This method removes a player from the list of remote players served by this comm service.
Implements SecurePlayLibrary::SPAbstractCommsInterface. |
|
||||||||||||||||
|
This method takes the message and sends it over the network, if they are served by this comms service. This method is depreciated and will be removed in a future version of the software
Implements SecurePlayLibrary::SPAbstractCommsInterface. |
|
||||||||||||
|
This method takes the message and sends it over the network, if they are served by this comms service.
Implements SecurePlayLibrary::SPAbstractCommsInterface. |
|
|
This method sets the internal ID for a comms service if it has not been set. NOTE, this ID is not the public, network, or other ID for the communications service, but simply an internal handler.
Implements SecurePlayLibrary::SPAbstractCommsInterface. |
|
|
This method takes a serialized messagestring and turns it into an instance of the SPMessageClass
|
|
|
This method takes an instance of the SPMessageClass and serializes it into a string.
|
|
|
This is the local handle for uniquely identifying a comms service to game instances. Different comms services may be based on the same object to have different configurations - depending on implementation. |
|
|
Type of Comms Service Reimplemented in SecurePlayLibrary::SPCLocalCommsClass. |
|
|
This array holds the PlayerIDs of remote players that are supported by this comm service. A future upgrade is needed to track which players are associaed with which games. |
|
|
This array holds the gameIDs of the game instances that the comm service is actively supporting. |
|
|
This array holds the gameIDs of the game instances that the comm service is actively supporting. |