public class SocketProxy extends Object implements Runnable
| Constructor and Description |
|---|
SocketProxy(int localPort,
String remoteHost,
int remotePort,
Float rateUp,
Float rateDown)
Creates a proxy and binds to the local port.
|
public SocketProxy(int localPort,
String remoteHost,
int remotePort,
Float rateUp,
Float rateDown)
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 limitpublic void initialize()
throws IOException
IOException - If the initialization fails.Copyright © 2015. All rights reserved.