2006 Copyright Filed by IT GlobalSecure, Inc. All Rights Reserved. Not to be used without authorization by Author. SecurePlay, IT GlobalSecure, and IT Armor are registered trademarks by IT GlobalSecure, Inc. Software protected by software license, and one or more the following U.S. and International patent numbers: U.S. Patent 6,030,288, U.S. Patent 6,165,072, European Patent Office EP1016049A1,and World Intellectual Property Organization WO9912135C1 and additional filings worldwide.
SecurePlayLibrary::SPAbstractCommsClass Class Reference
#include <SPAbstractCommsClass.h>
Inheritance diagram for SecurePlayLibrary::SPAbstractCommsClass:
List of all members.
Detailed Description
This is the SuperClass for comms services classes. - Author:
- IT GlobaLSecure
- See also:
- SecurePlay License Information
Constructor & Destructor Documentation
| SPAbstractCommsClass::SPAbstractCommsClass |
( |
|
) |
|
|
Member Function Documentation
|
|
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. - Parameters:
-
- Returns:
- boolean - TRUE, if successful, FALSE, if not
Implements SecurePlayLibrary::SPAbstractCommsInterface. |
| bool SPAbstractCommsClass::addPlayer |
( |
string |
pid, |
|
|
string |
gid |
|
) |
[virtual] |
|
|
|
This method adds a player ID of a remote player serviced by this comm service. - Parameters:
-
| pid | String - player id to be added |
| gid | String - game id for the player to be added |
- Returns:
- boolean - TRUE, if successful, FALSE, if not
Implements SecurePlayLibrary::SPAbstractCommsInterface. |
| bool SPAbstractCommsClass::APIactivate |
( |
|
) |
|
|
| bool SPAbstractCommsClass::APIconfigureCommService |
( |
|
) |
|
|
|
|
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.) - Returns:
- true - Boolean: TRUE, if successful, FALSE, if not
|
| bool SPAbstractCommsClass::APIdeactivate |
( |
|
) |
|
|
| string SPAbstractCommsClass::getCommsID |
( |
|
) |
[virtual] |
|
| string SPAbstractCommsClass::getCommsServiceType |
( |
|
) |
[virtual] |
|
| SPMap< string, vector< string > * > SPAbstractCommsClass::getGameplayerList |
( |
|
) |
[virtual] |
|
| vector< string > SPAbstractCommsClass::getInternalGameIDList |
( |
|
) |
[virtual] |
|
| int SPAbstractCommsClass::includedPlayerCount |
( |
vector< string > |
playerarray, |
|
|
string |
gid |
|
) |
[protected] |
|
|
|
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 - Parameters:
-
| playerarray | String[] - player id list |
| gid | String - the game id |
- Returns:
- int - the number of players supported by the Comms Service in the input playerID array.
|
| void SPAbstractCommsClass::incoming |
( |
|
) |
[protected] |
|
|
|
This is a shell method placeholder for the actual processing of incoming data/datastreams/messages from a network. |
| bool SPAbstractCommsClass::isGameInternal |
( |
string |
gid |
) |
[virtual] |
|
|
|
This method returns whether a game is handled internally by a comms service - Parameters:
-
- Returns:
- boolean - True if game is internal and supported by Comms Service
Implements SecurePlayLibrary::SPAbstractCommsInterface. |
| void SPAbstractCommsClass::logError |
( |
|
) |
|
|
|
|
This is a shell for future error log. |
| void SPAbstractCommsClass::processincoming |
( |
SPMessageClass * |
inmess |
) |
|
|
|
|
This method processes the incoming message. - Parameters:
-
|
| bool SPAbstractCommsClass::prreceive |
( |
vector< SPbyte > |
message |
) |
[protected] |
|
|
|
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. - Parameters:
-
| message | String - the incoming message |
- Returns:
- result - Boolean: TRUE, if successfully handled, FALSE, if not.
|
| bool SPAbstractCommsClass::prsend |
( |
vector< SPbyte > |
message |
) |
[protected] |
|
| bool SPAbstractCommsClass::removeGame |
( |
string |
gid |
) |
[virtual] |
|
|
|
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 SPComms class instance. - Parameters:
-
- Returns:
- boolean - TRUE, if successful, FALSE, if not
Implements SecurePlayLibrary::SPAbstractCommsInterface. |
| bool SPAbstractCommsClass::removePlayer |
( |
string |
pid, |
|
|
string |
gid |
|
) |
[virtual] |
|
|
|
This method removes a player from the list of remote players served by this comm service. - Parameters:
-
| pid | String - player id to ber removed. |
| gid | String - game id from which the player is to be removed. |
- Returns:
- result - Boolean: TRUE, if successful, FALSE, if not
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 method takes the message and sends it over the network, if they are served by this comms service.) - Parameters:
-
- Returns:
- integer - int - Number of remote players that were handled by this comm service for the message (or the number of players supported by the Comms Service in the input playerID array.)
Implements SecurePlayLibrary::SPAbstractCommsInterface. |
| bool SPAbstractCommsClass::setcommsID |
( |
string |
cid |
) |
[virtual] |
|
|
|
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. - Parameters:
-
- Returns:
- boolean: TRUE, if succesful, FALSE, if not
Implements SecurePlayLibrary::SPAbstractCommsInterface. |
Member Data Documentation
The documentation for this class was generated from the following files:
- D:/SecurePlayLibrary/060216_SecurePlayLibrary_3_1_baseline/CPP/src/SPAbstractCommsClass.h
- D:/SecurePlayLibrary/060216_SecurePlayLibrary_3_1_baseline/CPP/src/SPAbstractCommsClass.cpp
2006 Copyright Filed by IT GlobalSecure, Inc. All Rights Reserved. Not to be used without authorization by Author. SecurePlay, IT GlobalSecure, and IT Armor are registered trademarks by IT GlobalSecure, Inc. Software protected by software license, and one or more the following U.S. and International patent numbers: U.S. Patent 6,030,288, U.S. Patent 6,165,072, European Patent Office EP1016049A1,and World Intellectual Property Organization WO9912135C1 and additional filings worldwide.