Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

SecurePlayLibrary::SPCLocalCommsClass Class Reference

#include <SPCLocalCommsClass.h>

Inheritance diagram for SecurePlayLibrary::SPCLocalCommsClass:

SecurePlayLibrary::SPAbstractCommsClass SecurePlayLibrary::SPAbstractCommsInterface List of all members.

Detailed Description

This method handles communications between multiple instances of the SecurePlay library on a single computer. This is an easy way to test or implement multiplayer games with a single design. Each SecurePlay library instance should have its own SPLocalCommsClass object instance
Author:
IT GlobalSecure
See also:
SecurePlay License Information


Public Member Functions

 SPCLocalCommsClass (vector< SPCLocalCommsClass * > *in)
 ~SPCLocalCommsClass ()
bool prsend (string message)
bool APIactivate ()
bool APIdeactivate ()
void incoming (string message)
bool isActive ()

Public Attributes

const string extendedversion
const string releaseversion
const string commstype

Private Attributes

bool activated
vector< SPCLocalCommsClass * > * localcommsset
ThreadLib::ThreadID t1


Constructor & Destructor Documentation

SPCLocalCommsClass::SPCLocalCommsClass vector< SPCLocalCommsClass * > *  in  ) 
 

Default Constructor

SPCLocalCommsClass::~SPCLocalCommsClass  ) 
 

Default Destructor


Member Function Documentation

bool SPCLocalCommsClass::APIactivate  )  [virtual]
 

This method adds the Local Comms instance to the set of active Local Comms objects so it will receive incoming messages

Reimplemented from SecurePlayLibrary::SPAbstractCommsClass.

bool SPCLocalCommsClass::APIdeactivate  )  [virtual]
 

This method removes the Local Comms instance from the set of active local Comms objects so it can no longer send or receive messages

Reimplemented from SecurePlayLibrary::SPAbstractCommsClass.

void SPCLocalCommsClass::incoming string  message  ) 
 

This method handles incoming messages and passes them on for processing by the various games associated with the Local Comms instance.

Parameters:
message - String - message

bool SPCLocalCommsClass::isActive  ) 
 

Checks to see if the Comms is active

bool SPCLocalCommsClass::prsend string  message  )  [virtual]
 

This method sends messages to each of the registered Local Comms instances

Parameters:
message 
Returns:
boolean - true, if successful

Reimplemented from SecurePlayLibrary::SPAbstractCommsClass.


Member Data Documentation

bool SecurePlayLibrary::SPCLocalCommsClass::activated [private]
 

const string SecurePlayLibrary::SPCLocalCommsClass::commstype
 

Type of Comms Service

Reimplemented from SecurePlayLibrary::SPAbstractCommsClass.

const string SecurePlayLibrary::SPCLocalCommsClass::extendedversion
 

Developer extended version.

vector<SPCLocalCommsClass*>* SecurePlayLibrary::SPCLocalCommsClass::localcommsset [private]
 

const string SecurePlayLibrary::SPCLocalCommsClass::releaseversion
 

IT GlobalSecure release version.

ThreadLib::ThreadID SecurePlayLibrary::SPCLocalCommsClass::t1 [private]
 


The documentation for this class was generated from the following files: 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.