Class SocksConnecter

All Implemented Interfaces:
IPollEvents

public class SocksConnecter extends TcpConnecter
  • Field Details

  • Constructor Details

  • Method Details

    • processPlug

      protected void processPlug()
      Overrides:
      processPlug in class TcpConnecter
    • processTerm

      protected void processTerm(int linger)
      Overrides:
      processTerm in class TcpConnecter
    • inEvent

      public void inEvent()
      Description copied from interface: IPollEvents
      Called by I/O thread when file descriptor is ready for reading.
      Specified by:
      inEvent in interface IPollEvents
      Overrides:
      inEvent in class TcpConnecter
    • outEvent

      public void outEvent()
      Description copied from interface: IPollEvents
      Called by I/O thread when file descriptor is ready for writing.
      Specified by:
      outEvent in interface IPollEvents
      Overrides:
      outEvent in class TcpConnecter
    • timerEvent

      public void timerEvent(int id)
      Description copied from interface: IPollEvents
      Called when timer expires.
      Specified by:
      timerEvent in interface IPollEvents
      Overrides:
      timerEvent in class TcpConnecter
      Parameters:
      id - the ID of the expired timer.
    • initiateConnect

      void initiateConnect()
    • processServerResponse

      int processServerResponse()
    • parseAddress

      void parseAddress(String address, String hostname, int port)
    • connectToProxy

      void connectToProxy()
    • error

      void error()
    • startTimer

      void startTimer()
    • getNewReconnectIvl

      int getNewReconnectIvl()
    • open

      int open()
    • checkProxyConnection

      void checkProxyConnection()