public class MultiplexerOutputStreamController extends Object
Modifier and Type | Method and Description |
---|---|
protected int |
getMaxWriteLength(VirtualSocket vs,
int requestSize)
Used to determine the max size that can be written to real socket per request.
|
int |
getThrottleLimit() |
long |
getWriteCount() |
long |
getWriteSize() |
protected void |
onSocketException(Exception e) |
protected void |
sendCommand(int cmd,
int param)
Send a command to receiver.
|
protected void |
sendCommand(int cmd,
int param,
String serverSocketName)
Send a command to receiver.
|
void |
sendPingCommand() |
void |
setThrottleLimit(int mbPerSecond)
Throttle to limit the number of MB per second, calculated 10 times per second.
|
public void setThrottleLimit(int mbPerSecond)
public int getThrottleLimit()
public long getWriteCount()
public long getWriteSize()
protected int getMaxWriteLength(VirtualSocket vs, int requestSize)
public void sendPingCommand() throws IOException
IOException
protected void onSocketException(Exception e)
protected void sendCommand(int cmd, int param) throws IOException
IOException
protected void sendCommand(int cmd, int param, String serverSocketName) throws IOException
cmd
- see MultiplexerSocketController for list of commandsIOException
Copyright © 1999–2019 ViaOA. All rights reserved.