public class PipeComm extends Comm
Modifier and Type | Field and Description |
---|---|
static java.io.BufferedReader |
input
Reader of the player.
|
static java.io.BufferedWriter |
output
Writer of the player.
|
lastSsoType, lineSep, messageId, TOKEN_SEP
Constructor and Description |
---|
PipeComm(java.lang.Process client)
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.
|
endComm, finishGame, getLastSsoType, startComm
activeCount, 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, start, stop, stop, suspend, toString, yield
public static java.io.BufferedReader input
public static java.io.BufferedWriter output
public PipeComm(java.lang.Process client)
client
- process that runs the agent.public void initBuffers()
initBuffers
in class Comm
public void commSend(java.lang.String msg) throws java.io.IOException