Packet
This commit is contained in:
parent
b0242e670e
commit
a54c2660e9
@ -1,4 +1,16 @@
|
|||||||
package fr.ntr;
|
package fr.ntr;
|
||||||
|
|
||||||
public class Packets {
|
public class Packets {
|
||||||
|
static final int packetSize = 100;
|
||||||
|
private int creationTime;
|
||||||
|
private int endTimeSending;
|
||||||
|
private double bitsNumberRemaining;
|
||||||
|
private User user;
|
||||||
|
|
||||||
|
public Packets(int creationTime, int endTimeSending, double bitsNumberRemaining, User user){
|
||||||
|
this.creationTime = creationTime;
|
||||||
|
this.endTimeSending = endTimeSending;
|
||||||
|
this.bitsNumberRemaining = bitsNumberRemaining;
|
||||||
|
this.user = user;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user