All Packages Class Hierarchy This Package Previous Next Index
Class reliability.ReliablePacket
java.lang.Object
|
+----link.LinkPacket
|
+----network.NetworkPacket
|
+----reliability.ReliablePacket
- public class ReliablePacket
- extends NetworkPacket
The extra data carried by a reliability-level packet. This
extends the NetworkPacket structure in the network
package
While you are programming in the reliability level, feel free
to add reasonable fields here.
- See Also:
- NetworkPacket
-
ack
- Is this packet an ack?
-
fin
- Is this packet a fin?
-
sequenceNum
- Sequence number for this packet.
-
syn
- Is this packet an syn?
-
ReliablePacket()
- Constructor for some default setup.
-
toString()
- Make a string for packet trace messages.
ack
public boolean ack
- Is this packet an ack?
sequenceNum
public int sequenceNum
- Sequence number for this packet.
syn
public boolean syn
- Is this packet an syn?
fin
public boolean fin
- Is this packet a fin?
ReliablePacket
public ReliablePacket()
- Constructor for some default setup. The defaults are
- ack = false;
- syn = false;
- fin = false;
toString
public String toString()
- Make a string for packet trace messages. Should be short
- Overrides:
- toString in class NetworkPacket
All Packages Class Hierarchy This Package Previous Next Index