Package javaforce
Class SOCKS
java.lang.Object
javaforce.SOCKS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanBinds to a remote SOCKS4 server port.static booleanBinds to a remote SOCKS5 server port.static booleanConnects to host via a SOCKS4 server.static booleanConnects to host via a SOCKS5 server.
-
Constructor Details
-
SOCKS
public SOCKS()
-
-
Method Details
-
connect
Connects to host via a SOCKS4 server. Socket must already be connected to SOCKS4 server. host must be x.x.x.x- Returns:
- boolean state if SOCKS4 connection to host:port was successful.
-
bind
Binds to a remote SOCKS4 server port.- Parameters:
host- = client allowed to connect (0.0.0.0 = any host)port- = port to listen on socks server
-
connect
Connects to host via a SOCKS5 server. Socket must already be connected to SOCKS5 server. host may be x.x.x.x or domain name.- Returns:
- boolean state if SOCKS5 connection to host:port was successful.
-
bind
Binds to a remote SOCKS5 server port.
-