public class GenericSocksMethodRequestor extends Object implements SocksMethodRequestor
GenericSocksMethodRequestor
implements SocksMethodRequestor
.Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
logger
Logger that subclasses also can use.
|
Constructor and Description |
---|
GenericSocksMethodRequestor() |
Modifier and Type | Method and Description |
---|---|
SocksMethod |
doRequest(List<SocksMethod> acceptableMethods,
Socket socket,
int socksVersion)
Send request message to server.
|
protected static final org.slf4j.Logger logger
public SocksMethod doRequest(List<SocksMethod> acceptableMethods, Socket socket, int socksVersion) throws SocksException, IOException
SocksMethodRequestor
This method will send list of methods to SOCKS server and receive the method that SOCKS server selected.
doRequest
in interface SocksMethodRequestor
acceptableMethods
- Methods that client can handle.socket
- The socket instance that has connected SOCKS server.socksVersion
- SOCKS protocol versionSocksException
- If any errors about SOCKS protocol occurred.IOException
- if any IO errors occurred.Copyright © 2015. All rights reserved.