Class Socks5LogicHandler

    • Method Detail

      • doHandshake

        public void doHandshake​(IoFilter.NextFilter nextFilter)
        Performs the handshake process.
        Parameters:
        nextFilter - the next filter
      • messageReceived

        public void messageReceived​(IoFilter.NextFilter nextFilter,
                                    IoBuffer buf)
        Handles incoming data during the handshake process. Should consume only the handshake data from the buffer, leaving any extra data in place.
        Parameters:
        nextFilter - the next filter
        buf - the buffered data received
      • handleResponse

        protected void handleResponse​(IoFilter.NextFilter nextFilter,
                                      IoBuffer buf,
                                      int step)
                               throws Exception
        Handle a SOCKS v5 response from the proxy server.
        Parameters:
        nextFilter - the next filter
        buf - the buffered data received
        step - the current step in the authentication process
        Throws:
        Exception - If something went wrong