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::SPTSimultaneousClass Class Reference
#include <SPTSimultaneousClass.h>
Inheritance diagram for SecurePlayLibrary::SPTSimultaneousClass:
List of all members.
|
Public Member Functions |
| | SPTSimultaneousClass () |
| | SPTSimultaneousClass (SPGameInterface *gameobj, string master, vector< string > playerIDList, bool privateflag, string transactionID, string AGE, vector< string > configarr) |
| void | pruniqueinit () |
| bool | APIsendHiddenSecret (string sender, bool manflag, string newsecret) |
| bool | APIrevealSecret (string sender) |
| bool | APIverifySimultaneous () |
| string | APIgetSecret (string sender) |
| bool | pronincomingTransaction (SPMessageClass *incoming) |
| int | getPrpadlength () |
| SPMap< string, string > | getSecret () |
| SPMap< string, string > | getSecretpadded () |
| SPMap< string, string > | getSecrettransform () |
| SPAbstractTransactionInterface * | APIcreateTransaction (SPGameInterface *gameapiobj, SPMessageClass *message) |
| string | APIgetTransactionType () |
Static Public Member Functions |
| string | gettranstype () |
| bool | registerTransaction () |
| SPAbstractTransactionInterface * | createSimultaneous (SPGameInterface *gameobj, string master, vector< string > playerIDList, bool privateflag, string AGE, vector< string > configarr) |
Static Protected Attributes |
| const string | status_allsent = "allsent" |
| const string | status_allreceived = "allreceived" |
| const string | status_secretsent = "secretsent" |
| const string | status_secretrevealed = "secretrevealed" |
| const string | status_secretrevealedlist = "secretrevealedlist" |
Detailed Description
The simultaneous transaction allows its participants to send "Simultaneous Secrets" to each other and reveal them at the same time. - Author:
- IT GlobalSecure
- See also:
- SecurePlay License Information
Constructor & Destructor Documentation
| SPTSimultaneousClass::SPTSimultaneousClass |
( |
|
) |
|
|
| SPTSimultaneousClass::SPTSimultaneousClass |
( |
SPGameInterface * |
gameobj, |
|
|
string |
master, |
|
|
vector< string > |
playerIDList, |
|
|
bool |
privateflag, |
|
|
string |
transactionID, |
|
|
string |
AGE, |
|
|
vector< string > |
configarr |
|
) |
|
|
|
|
Overloaded Constructor - Parameters:
-
| gameobj | SPGameInterface - the game object with which the transaction is associated |
| master | String - the master of the transaction |
| playerIDList | String[] - player id list of players who are associated with the transaction |
| privateflag | boolean - private flag |
| transactionID | String - the transaction id |
|
Member Function Documentation
| string SPTSimultaneousClass::APIgetSecret |
( |
string |
sender |
) |
|
|
|
|
This method returns the actual secret for the specified player that this transaction is protecting, if available. - Parameters:
-
| sender | String - sender of the secret |
- Returns:
- secret - String - the secret
|
| string SPTSimultaneousClass::APIgetTransactionType |
( |
|
) |
[virtual] |
|
| bool SPTSimultaneousClass::APIrevealSecret |
( |
string |
sender |
) |
|
|
|
|
This method sends the secretpadded value to the specified remote players. - Parameters:
-
| sender | String - the sender of the secret |
- Returns:
- result - Boolean: TRUE, if successful, FALSE, if not
|
| bool SPTSimultaneousClass::APIsendHiddenSecret |
( |
string |
sender, |
|
|
bool |
manflag, |
|
|
string |
newsecret |
|
) |
|
|
|
|
This method allows the specified transaction participant to send the transform of a secret to the other participants in the Simultaneous transaction. - Parameters:
-
| sender | String - sender of the secret |
| manflag | - boolean - manual reveal of secret |
| newsecret | String - the secret |
- Returns:
- result - Boolean: TRUE, if successful, FALSE, if not
|
| bool SPTSimultaneousClass::APIverifySimultaneous |
( |
|
) |
|
|
|
|
This method verifies whether a Simultaneous transaction was carried out successfully and responds with a simple Boolean. - Returns:
- result - Boolean: TRUE, if transaction verified, FALSE, if not.
|
| int SPTSimultaneousClass::getPrpadlength |
( |
|
) |
|
|
|
|
Getter function that returns the property: prpadlength - Returns:
- prpadlength - int
|
| SPMap< string, string > SPTSimultaneousClass::getSecret |
( |
|
) |
|
|
|
|
Getter function that returns the property: secret - Returns:
- secret - SPHashtable
|
| SPMap< string, string > SPTSimultaneousClass::getSecretpadded |
( |
|
) |
|
|
|
|
Getter function that returns the property: secretpadded - Returns:
- secretpadded - SPHashtable
|
| SPMap< string, string > SPTSimultaneousClass::getSecrettransform |
( |
|
) |
|
|
|
|
Getter function that returns the property: secrettransform - Returns:
- secrettransform - SPHashtable
|
| string SPTSimultaneousClass::gettranstype |
( |
|
) |
[static] |
|
| bool SPTSimultaneousClass::pronincomingTransaction |
( |
SPMessageClass * |
incoming |
) |
|
|
| void SPTSimultaneousClass::pruniqueinit |
( |
|
) |
|
|
| bool SPTSimultaneousClass::registerTransaction |
( |
|
) |
[static] |
|
|
|
Registers this transaction. - Returns:
- boolean
|
Member Data Documentation
|
|
transaction status ready variable |
|
|
transaction status ready variable |
|
|
transaction status complete variable |
|
|
transaction status error variable |
|
|
transaction status ready variable |
The documentation for this class was generated from the following files:
- D:/SecurePlayLibrary/060216_SecurePlayLibrary_3_1_baseline/CPP/src/SPTSimultaneousClass.h
- D:/SecurePlayLibrary/060216_SecurePlayLibrary_3_1_baseline/CPP/src/SPTSimultaneousClass.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.