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

Variable Index

 o ack
Is this packet an ack?
 o fin
Is this packet a fin?
 o sequenceNum
Sequence number for this packet.
 o syn
Is this packet an syn?

Constructor Index

 o ReliablePacket()
Constructor for some default setup.

Method Index

 o toString()
Make a string for packet trace messages.

Variables

 o ack
 public boolean ack
Is this packet an ack?

 o sequenceNum
 public int sequenceNum
Sequence number for this packet.

 o syn
 public boolean syn
Is this packet an syn?

 o fin
 public boolean fin
Is this packet a fin?

Constructors

 o ReliablePacket
 public ReliablePacket()
Constructor for some default setup. The defaults are

Methods

 o 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