KLALB V3.4

This commit is contained in:
Administrator
2025-11-15 11:08:16 +08:00
parent 306bfd36f7
commit 8842566ee2
160 changed files with 18540 additions and 4512 deletions
@@ -113,7 +113,7 @@ public abstract class KLALBPacket extends IPv6Packet.IPv6Payload {
public long getRcvtime() {
return rcvtime;
}
public long getLength() {//缓冲区limit,实际长度
public long getTotalLength() {//缓冲区limit,实际长度
return headerLength;
}
@@ -147,6 +147,7 @@ public abstract class KLALBPacket extends IPv6Packet.IPv6Payload {
public static KLALBPacket readKLALBPacketFromChannel(ReadableByteChannel in) throws IOException {
while(true) {
ByteBuffer bb=NetworkPacket.bufferAllocator.allocate(40);
bb.position(0);
bb.limit(1);
while(bb.hasRemaining()){
if(in.read(bb)==-1) {