mirror of
https://gitee.com/willfree/min-dev-java.git
synced 2026-10-04 19:42:01 +08:00
add packet test: LpPacketTest
This commit is contained in:
1 parent
56eeae6dd7
commit
43468b0999
23 files changed
+208
-16
No files matched your search
@@ -34,12 +34,22 @@ import encoding.*;
|
||||
// }
|
||||
//
|
||||
public class CPacket implements InteractWithField, IEncodingAble {
|
||||
public MINPacket minPacket=new MINPacket();
|
||||
private MINPacket minPacket=new MINPacket();
|
||||
public TTL ttl=new TTL();
|
||||
public Payload payload=new Payload();
|
||||
public Identifier srcIdentifier=new Identifier();
|
||||
public Identifier dstIdentifier=new Identifier();
|
||||
|
||||
public CPacket(){
|
||||
}
|
||||
|
||||
public CPacket(Identifier srcIdentifier,Identifier dstIdentifier,
|
||||
Payload payload,TTL ttl){
|
||||
this.srcIdentifier=srcIdentifier;
|
||||
this.dstIdentifier=dstIdentifier;
|
||||
this.payload=payload;
|
||||
this.ttl=ttl;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取源标识
|
||||
|
||||
Reference in new issue
Block a user