|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jivesoftware.smackx.bytestreams.socks5.Socks5TestProxy
public class Socks5TestProxy
Simple SOCKS5 proxy for testing purposes. It is almost the same as the Socks5Proxy class but the port can be configured more easy and it all connections are allowed.
| Method Summary | |
|---|---|
java.lang.String |
getAddress()
Returns the host address of the local SOCKS5 proxy server. |
int |
getPort()
Returns the port of the local SOCKS5 proxy server. |
static Socks5TestProxy |
getProxy(int port)
Returns the local SOCKS5 proxy server |
java.net.Socket |
getSocket(java.lang.String digest)
Returns the socket for the given digest. |
boolean |
isRunning()
Returns true if the local SOCKS5 proxy server is running, otherwise false. |
void |
start()
Starts the local SOCKS5 proxy server. |
void |
stop()
Stops the local SOCKS5 proxy server. |
static void |
stopProxy()
Stops the test proxy |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Socks5TestProxy getProxy(int port)
port - of the test proxy
public static void stopProxy()
public void start()
public void stop()
public java.lang.String getAddress()
public int getPort()
public java.net.Socket getSocket(java.lang.String digest)
digest - identifying the connection
public boolean isRunning()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||