-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPFrame.java
34 lines (30 loc) · 1.42 KB
/
PFrame.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*===============================================================*
* File: PFrame.java *
* *
* The class for Frame objects. *
* Used by SWP and SWE classes. *
* Uses the Packet class *
* *
* Author: Professor SUN Chengzheng *
* School of Computer Engineering *
* Nanyang Technological University *
* Singapore 639798 *
*===============================================================*/
public class PFrame {
/**************************************************************
Class constants
**************************************************************/
public static final int DATA = 0;
public static final int ACK = 1;
public static final int NAK = 2;
public static final String[] KIND = {"DATA",
"ACK",
"NAK" };
/**************************************************************
Instance variables (all public for easy reference)
**************************************************************/
public int kind = 0;
public int ack = 0;
public Packet info = new Packet();
public int seq = 0;
}//End of PFrame Class