java.lang.Object
net.i2p.router.transport.udp.PacketBuilder2.Fragment
Enclosing class:
PacketBuilder2

public static class PacketBuilder2.Fragmentextends Object
Class for passing multiple fragments to buildPacket().
  • Field Details

    • state

      public final OutboundMessageState state
      The outbound message state.
    • num

      public final int num
      The fragment number.
  • Constructor Details

    • Fragment

      public Fragment(OutboundMessageState state, int num)
      One fragment's slice of an outbound message, identified by its index.
      Parameters:
      state - the outbound message state
      num - fragment number within the message, 0 for the first
  • Method Details

    • toString

      public String toString()
      String representation of this fragment.
      Overrides:
      toString in class Object