Class SockMgr

java.lang.Object
i2p.susi.webmail.pop3.SockMgr
All Implemented Interfaces:
I2PSocketManager.DisconnectListener

public class SockMgr extends Object implements I2PSocketManager.DisconnectListener
Standalone only, bridge to I2PSocketManager.
Since:
0.9.70 adapted from I2PSnarkUtil
  • Constructor Details

  • Method Details

    • connect

      public boolean connect()
      Connect to the router, if we aren't already
    • sessionDisconnected

      public void sessionDisconnected()
      DisconnectListener interface
      Specified by:
      sessionDisconnected in interface I2PSocketManager.DisconnectListener
    • connected

      public boolean connected()
    • isConnecting

      public boolean isConnecting()
    • getSocketManager

      public I2PSocketManager getSocketManager()
      Returns:
      null if not connected
    • disconnect

      public void disconnect()
      Destroy the destination itself
    • connect

      public Socket connect(Destination peer, int port) throws IOException
      connect to the given destination
      Throws:
      IOException
    • getDestination

      public Destination getDestination(String ip)
      Base64 Hash or Hash.i2p or name.i2p using naming service
    • lookup

      public String lookup(String name)