Class UDPNetwork.MessageAndIndex

  • Enclosing class:
    UDPNetwork

    final class UDPNetwork.MessageAndIndex
    extends Object
    A particular structure used to remember:
    • the sent message.
    • the index of the first packet containing the message.
    • the number of packets used to send the message.
    • Field Detail

      • msg

        Message msg
        The sent message.
      • index

        int index
        The index of the first packet containing the message.
      • size

        int size
        The number of packets used to send the message.
    • Constructor Detail

      • MessageAndIndex

        public MessageAndIndex​(Message msg,
                               int index,
                               int size)