Class StandardSocket

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    class StandardSocket
    extends Socket
    Bridge to I2PSocket. This extends Socket to make porting apps easier. Methods throw IOExceptions like Sockets do, rather than returning null for some methods. StandardSockets are always bound, and always start out connected (unless connectDelay is > 0). You may not create an unbound StandardSocket. Create this through the SocketManager. Todo: Make public and add getPeerDestination() ?
    Since:
    0.8.4
    Author:
    zzz