Class Socks5SocketBroker
java.lang.Object
com.exceptionfactory.socketbroker.protocol.socks.Socks5SocketBroker
- All Implemented Interfaces:
SocketBroker
SOCKS Protocol Version 5 implementation of Socket Broker
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
connect
(Socket socket, InetSocketAddress remoteAddress, BrokerConfiguration brokerConfiguration) Connect to SOCKS server using provided Socket and request connection to the specified remote address
-
Constructor Details
-
Socks5SocketBroker
public Socks5SocketBroker()
-
-
Method Details
-
connect
public void connect(Socket socket, InetSocketAddress remoteAddress, BrokerConfiguration brokerConfiguration) throws IOException Connect to SOCKS server using provided Socket and request connection to the specified remote address- Specified by:
connect
in interfaceSocketBroker
- Parameters:
socket
- Socket configured with remote address of SOCKS serverremoteAddress
- Remote address of connection destinationbrokerConfiguration
- Broker Configuration- Throws:
IOException
- Thrown on communication failuresBrokeredAuthenticationException
- Thrown on authentication failures when communicating with SOCKS serverConnectException
- Thrown on SOCKS server connection request failures
-