Class HostReplyMessage

  • All Implemented Interfaces:
    I2CPMessage

    public class HostReplyMessage
    extends I2CPMessageImpl
    Response to HostLookupMessage. Replaces DestReplyMessage.
    Since:
    0.9.11
    • Field Detail

      • RESULT_FAILURE

        public static final int RESULT_FAILURE
        generic fail, other codes TBD
        See Also:
        Constant Field Values
      • RESULT_SECRET_REQUIRED

        public static final int RESULT_SECRET_REQUIRED
        Since:
        0.9.41
        See Also:
        Constant Field Values
      • RESULT_KEY_REQUIRED

        public static final int RESULT_KEY_REQUIRED
        Since:
        0.9.41
        See Also:
        Constant Field Values
      • RESULT_SECRET_AND_KEY_REQUIRED

        public static final int RESULT_SECRET_AND_KEY_REQUIRED
        Since:
        0.9.41
        See Also:
        Constant Field Values
      • RESULT_DECRYPTION_FAILURE

        public static final int RESULT_DECRYPTION_FAILURE
        Since:
        0.9.41
        See Also:
        Constant Field Values
    • Constructor Detail

      • HostReplyMessage

        public HostReplyMessage()
      • HostReplyMessage

        public HostReplyMessage​(SessionId id,
                                Destination d,
                                long reqID)
        A message with RESULT_SUCCESS and a non-null Destination.
        Parameters:
        d - non-null
        reqID - 0 to 2**32 - 1
      • HostReplyMessage

        public HostReplyMessage​(SessionId id,
                                int failureCode,
                                long reqID)
        A message with a failure code and no Destination.
        Parameters:
        failureCode - 1-255
        reqID - from the HostLookup 0 to 2**32 - 1