|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.SecurePlay.Comms.SPAbstractCommsClass
com.SecurePlay.Comms.SPCLocalCommsFile.SPCLocalCommsFileClass
This class 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. This version uses files to exchange data rather than simply instances so that it can be used with different sessions or different languages, if message encodings are uniform.

| Field Summary |
| Fields inherited from class com.SecurePlay.Comms.SPAbstractCommsClass |
commstype |
| Constructor Summary | |
SPCLocalCommsFileClass()
Default Constructor |
|
| Method Summary | |
boolean |
APIactivate()
This method adds the Local Comms instance to the set of active Local Comms objects so it will receive incoming messages |
boolean |
APIconfigureCommService(int pollp)
Configures the comms service. |
boolean |
APIdeactivate()
This method removes the Local Comms instance from the set of active local Comms objects so it can no longer send or receive messages NOTE: Deactivate for threads does not actually delete the thread. |
boolean |
APIsetDirPath(java.lang.String str)
This method sets the directory path for the various local comms classes that communicate via shared files |
java.lang.String |
getCommsServiceType()
This method gets the comms service type |
boolean |
prsend(java.lang.String message)
This method sends messages to each of the registered Local Comms instances |
void |
run()
|
| Methods inherited from class com.SecurePlay.Comms.SPAbstractCommsClass |
addGame, addPlayer, APIconfigureCommService, getCommsID, getGameplayerList, getInternalGameIDList, getPrinternalGameList, isGameInternal, logError, processincoming, prreceive, removeGame, removePlayer, sendMessage, sendMessage, setcommsID, SPdeserialize, SPserialize |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SPCLocalCommsFileClass()
| Method Detail |
public java.lang.String getCommsServiceType()
getCommsServiceType in interface SPAbstractCommsInterfacegetCommsServiceType in class SPAbstractCommsClasspublic boolean prsend(java.lang.String message)
prsend in class SPAbstractCommsClassmessage - String - the message to be sent.
public boolean APIactivate()
APIactivate in class SPAbstractCommsClasspublic boolean APIdeactivate()
APIdeactivate in class SPAbstractCommsClasspublic void run()
run in interface java.lang.Runnablepublic boolean APIsetDirPath(java.lang.String str)
str - - proposed directory path
public boolean APIconfigureCommService(int pollp)
pollp - int - the polling period to be scheduled to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||