forked from I2P_Developers/i2p.i2p
SocketErrorListener callback is unimplemented
This commit is contained in:
@ -145,7 +145,8 @@ public class I2PTunnelRunner extends I2PAppThread implements I2PSocket.SocketErr
|
||||
try {
|
||||
InputStream in = getSocketIn();
|
||||
OutputStream out = getSocketOut(); // = new BufferedOutputStream(s.getOutputStream(), NETWORK_BUFFER_SIZE);
|
||||
i2ps.setSocketErrorListener(this);
|
||||
// unimplemented in streaming
|
||||
//i2ps.setSocketErrorListener(this);
|
||||
InputStream i2pin = i2ps.getInputStream();
|
||||
OutputStream i2pout = i2ps.getOutputStream(); //new BufferedOutputStream(i2ps.getOutputStream(), MAX_PACKET_SIZE);
|
||||
if (initialI2PData != null) {
|
||||
@ -246,7 +247,8 @@ public class I2PTunnelRunner extends I2PAppThread implements I2PSocket.SocketErr
|
||||
if (_log.shouldLog(Log.WARN))
|
||||
_log.warn("Could not close I2PSocket", ex);
|
||||
}
|
||||
i2ps.setSocketErrorListener(null);
|
||||
// unimplemented in streaming
|
||||
//i2ps.setSocketErrorListener(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -76,6 +76,9 @@ public interface I2PSocket extends Closeable {
|
||||
|
||||
public boolean isClosed();
|
||||
|
||||
/**
|
||||
* Deprecated, unimplemented, does nothing
|
||||
*/
|
||||
public void setSocketErrorListener(SocketErrorListener lsnr);
|
||||
|
||||
/**
|
||||
@ -93,6 +96,8 @@ public interface I2PSocket extends Closeable {
|
||||
public int getLocalPort();
|
||||
|
||||
/**
|
||||
* Deprecated, unimplemented, does nothing. Original description:
|
||||
*
|
||||
* Allow notification of underlying errors communicating across I2P without
|
||||
* waiting for any sort of cleanup process. For example, if some data could
|
||||
* not be sent, this listener is notified immediately, and while the input/output
|
||||
|
@ -139,6 +139,9 @@ class I2PSocketFull implements I2PSocket {
|
||||
c.getOptions().setReadTimeout(ms);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deprecated, unimplemented, does nothing
|
||||
*/
|
||||
public void setSocketErrorListener(I2PSocket.SocketErrorListener lsnr) {
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user