public interface SocksMethodRequestor
SocksMethodRequestor
is a tool that can send request message from
SOCKS server and get a method that server accepted.GenericSocksMethodRequestor
Modifier and Type | Method and Description |
---|---|
SocksMethod |
doRequest(List<SocksMethod> acceptableMethods,
Socket socket,
int socksVersion)
Send request message to server.
|
SocksMethod doRequest(List<SocksMethod> acceptableMethods, Socket socket, int socksVersion) throws SocksException, IOException
This method will send list of methods to SOCKS server and receive the method that SOCKS server selected.
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.