public abstract class MultiplexerInputStreamController extends Object
Modifier and Type | Method and Description |
---|---|
protected void |
close()
Flag the inputstream as closed and notify all vsockets that are waiting to read from it.
|
protected abstract void |
closeRealSocket()
Called by processCommand to close the "real" socket.
|
protected abstract void |
closeSocket(int id,
boolean bSendCommand)
Called by processCommand to close an existing vsocket.
|
protected abstract void |
createNewSocket(int connectionId,
int id,
String serverSocketName)
Called by processCommand to create a new vsocket.
|
long |
getLastReadTime() |
protected abstract int |
getMaxSocketId()
this is needed to verify the max ID used for virtual sockets
|
long |
getReadCount() |
long |
getReadSize() |
protected abstract VirtualSocket |
getSocket(int id)
Used by readRealSocket when reading the header for the next vsocket data to read.
|
protected void |
processCommand(int cmd,
int param)
Process "real" socket commands.
|
protected void close() throws IOException
IOException
public long getLastReadTime()
public long getReadCount()
public long getReadSize()
protected void processCommand(int cmd, int param) throws Exception
Exception
MultiplexerOutputStreamController.sendCommand(int, int)
protected abstract void createNewSocket(int connectionId, int id, String serverSocketName)
protected abstract void closeSocket(int id, boolean bSendCommand)
protected abstract void closeRealSocket()
protected abstract VirtualSocket getSocket(int id)
protected abstract int getMaxSocketId()
Copyright © 1999–2019 ViaOA. All rights reserved.