public class SocketComm extends Comm
| Modifier and Type | Field and Description |
|---|---|
int |
port |
lastSsoType, lineSep, messageId, TOKEN_SEP| Constructor and Description |
|---|
SocketComm(java.lang.String portStr)
Public constructor of the player.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
commRecv()
Receives a message from the client.
|
void |
commSend(java.lang.String msg)
Sends a message through the pipe.
|
void |
initBuffers()
Creates the buffers for pipe communication.
|
void |
start() |
endComm, finishGame, getLastSsoType, startCommactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yieldpublic SocketComm(java.lang.String portStr)
public void initBuffers()
initBuffers in class Commpublic void start()
start in class java.lang.Threadpublic void commSend(java.lang.String msg)
throws java.io.IOException