public class SocketProxy extends Object implements Runnable
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_SIZE
The buffer size used for socket connections if delaying is added.
|
public static final int BUFFER_SIZE
public SocketProxy(int localPort,
String remoteHost,
int remotePort,
Float rateUp,
Float rateDown,
Float delayUp,
Float delayDown)
localPort - the local port to listen onremoteHost - the remote host to connect toremotePort - the remote port to connect torateUp - the upstream rate limitation to establish, or null
for no limitrateDown - the downstream rate limitation to establish, or
null for no limitdelayUp - the delay to add to the uplink stream, or null for
no delaydelayDown - the delay to add to the downlink stream, or null
for no delaypublic void initialize()
throws IOException
IOException - If the initialization fails.Copyright © 2015. All rights reserved.