Class MessageHandler

    • Method Detail

      • messageAvailable

        public void messageAvailable​(I2PSession session,
                                     int msgId,
                                     long size)
        Instruct the client that the given session has received a message with size # of bytes. This shouldn't be called anymore since we are registering as a muxed listener.
        Specified by:
        messageAvailable in interface I2PSessionListener
        Specified by:
        messageAvailable in interface I2PSessionMuxedListener
        Parameters:
        session - session to notify
        msgId - message number available
        size - size of the message
      • messageAvailable

        public void messageAvailable​(I2PSession session,
                                     int msgId,
                                     long size,
                                     int proto,
                                     int fromPort,
                                     int toPort)
        Instruct the client that the given session has received a message with size # of bytes.
        Specified by:
        messageAvailable in interface I2PSessionMuxedListener
        Parameters:
        session - session to notify
        msgId - message number available
        size - size of the message
        proto - 1-254 or 0 for unspecified
        fromPort - 1-65535 or 0 for unspecified
        toPort - 1-65535 or 0 for unspecified
      • reportAbuse

        public void reportAbuse​(I2PSession session,
                                int severity)
        Instruct the client that the session specified seems to be under attack and that the client may wish to move its destination to another router.
        Specified by:
        reportAbuse in interface I2PSessionListener
        Specified by:
        reportAbuse in interface I2PSessionMuxedListener
        Parameters:
        session - session to report abuse to
        severity - how bad the abuse is