All Implemented Interfaces:
I2NPMessage
Direct Known Subclasses:
ShortTunnelBuildMessage, VariableTunnelBuildMessage

public class TunnelBuildMessageextends TunnelBuildMessageBase
The basic build message with 8 records.
  • Field Details

    • MESSAGE_TYPE

      public static final int MESSAGE_TYPE
      The I2NP message type number for a tunnel build message.
      See Also:
  • Constructor Details

    • TunnelBuildMessage

      public TunnelBuildMessage(I2PAppContext context)
      Creates a build message with the default record count.
      Parameters:
      context - the application context the message is read and written under
    • TunnelBuildMessage

      protected TunnelBuildMessage(I2PAppContext context, int records)
      Creates a build message carrying the given number of build records.
      Parameters:
      context - the application context the message is read and written under
      records - the number of build records this message carries
  • Method Details

    • getType

      public int getType()
      The I2NP message type of a build message.
      Returns:
      MESSAGE_TYPE, 21
    • toString

      public String toString()
      String form for debugging.
      Overrides:
      toString in class Object