forked from KNEMC/KLALB
KLALB V3.6.0 写了一半
This commit is contained in:
@@ -10,20 +10,9 @@ import java.util.concurrent.atomic.LongAdder;
|
||||
import org.kne.cloud.network.MultipurposeSocketAddress;
|
||||
|
||||
public interface KLALBPacketLink {
|
||||
public void setOutputTrafficCounters(LongAdder[] al);
|
||||
public void setOutputPacketsCounters(LongAdder[] longAdders);
|
||||
public void setInputTrafficCounters(LongAdder[] longAdders);
|
||||
public void setInputPacketsCounters(LongAdder[] al);
|
||||
public void writePacket(ByteBuffer kp) throws IOException;
|
||||
public default void writePackets(ByteBuffer[] kpp,int off,int len) throws IOException {
|
||||
for (int i = 0; i < len; i++) {
|
||||
writePacket(kpp[off+i]);
|
||||
}
|
||||
}
|
||||
public void writeKLALBPacket(KLALBPacket kp) throws IOException;
|
||||
public void flush() throws IOException;
|
||||
public KLALBPacket readKLALBPacket()throws IOException;
|
||||
public ByteBuffer readPacket()throws IOException;
|
||||
public void close() throws IOException;
|
||||
public boolean isClosed();
|
||||
public void setSoTimeout(int val) throws SocketException;
|
||||
@@ -31,6 +20,5 @@ public interface KLALBPacketLink {
|
||||
@Override
|
||||
public String toString();
|
||||
public boolean isStream();
|
||||
public void writeKLALBPackets(List<KLALBPacket> kp) throws IOException;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user