Changeset e7cfb2d for apps/ministreaming


Ignore:
Timestamp:
Mar 13, 2017 2:09:27 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
1150b4cd
Parents:
ad810de
Message:

Streaming: Add reset() to I2PSocket API
i2ptunnel: Reset I2P socket on TCP socket errors, in standard servers
that don't have protocol responses
SAM: Reset I2P socket on handler errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/ministreaming/java/src/net/i2p/client/streaming/I2PSocket.java

    rad810de re7cfb2d  
    113113     */
    114114    public int getLocalPort();
     115   
     116    /**
     117     *  Resets and closes this socket. Sends a RESET indication to the far-end.
     118     *  This is the equivalent of setSoLinger(true, 0) followed by close() on a Java Socket.
     119     *
     120     *  Nonblocking.
     121     *  Any thread currently blocked in an I/O operation upon this socket will throw an IOException.
     122     *  Once a socket has been reset, it is not available for further networking use
     123     *  (i.e. can't be reconnected or rebound). A new socket needs to be created.
     124     *  Resetting this socket will also close the socket's InputStream and OutputStream.
     125     *
     126     *  @since 0.9.30
     127     */
     128    public void reset() throws IOException;
    115129
    116130    /**
Note: See TracChangeset for help on using the changeset viewer.