Class Socks5SocketBroker

java.lang.Object
com.exceptionfactory.socketbroker.protocol.socks.Socks5SocketBroker
All Implemented Interfaces:
SocketBroker

public class Socks5SocketBroker extends Object implements SocketBroker
SOCKS Protocol Version 5 implementation of Socket Broker
  • 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 interface SocketBroker
      Parameters:
      socket - Socket configured with remote address of SOCKS server
      remoteAddress - Remote address of connection destination
      brokerConfiguration - Broker Configuration
      Throws:
      IOException - Thrown on communication failures
      BrokeredAuthenticationException - Thrown on authentication failures when communicating with SOCKS server
      ConnectException - Thrown on SOCKS server connection request failures