Search in sources :

Example 16 with I2CPMessageException

use of net.i2p.data.i2cp.I2CPMessageException in project i2p.i2p by i2p.

the class ClientMessageEventListener method sendStatusMessage.

private void sendStatusMessage(SessionId id, int status) {
    SessionStatusMessage msg = new SessionStatusMessage();
    msg.setSessionId(id);
    msg.setStatus(status);
    try {
        _runner.doSend(msg);
    } catch (I2CPMessageException ime) {
        if (_log.shouldLog(Log.WARN))
            _log.warn("Error writing out the session status message", ime);
    }
}
Also used : I2CPMessageException(net.i2p.data.i2cp.I2CPMessageException) SessionStatusMessage(net.i2p.data.i2cp.SessionStatusMessage)

Aggregations

I2CPMessageException (net.i2p.data.i2cp.I2CPMessageException)16 SessionId (net.i2p.data.i2cp.SessionId)4 MessageId (net.i2p.data.i2cp.MessageId)3 MessageStatusMessage (net.i2p.data.i2cp.MessageStatusMessage)3 Destination (net.i2p.data.Destination)2 Hash (net.i2p.data.Hash)2 Lease (net.i2p.data.Lease)2 BandwidthLimitsMessage (net.i2p.data.i2cp.BandwidthLimitsMessage)2 GetBandwidthLimitsMessage (net.i2p.data.i2cp.GetBandwidthLimitsMessage)2 I2CPMessage (net.i2p.data.i2cp.I2CPMessage)2 RequestVariableLeaseSetMessage (net.i2p.data.i2cp.RequestVariableLeaseSetMessage)2 IOException (java.io.IOException)1 Date (java.util.Date)1 Properties (java.util.Properties)1 LeaseSet (net.i2p.data.LeaseSet)1 Payload (net.i2p.data.Payload)1 AbuseReason (net.i2p.data.i2cp.AbuseReason)1 AbuseSeverity (net.i2p.data.i2cp.AbuseSeverity)1 DestReplyMessage (net.i2p.data.i2cp.DestReplyMessage)1 DisconnectMessage (net.i2p.data.i2cp.DisconnectMessage)1