KLALB3.2
This commit is contained in:
@@ -7,10 +7,11 @@ import java.net.InetSocketAddress;
|
||||
import java.net.Socket;
|
||||
import java.net.SocketException;
|
||||
import java.nio.Buffer;
|
||||
import java.nio.ByteBuffer;
|
||||
|
||||
import org.kne.cloud.network.MultipurposeSocketAddress;
|
||||
|
||||
public class StreamKLALBPacketLink implements KLALBPacketLink {
|
||||
public class StreamKLALBPacketLink extends AbstractKLALBPacketLink implements KLALBPacketLink {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
@@ -30,13 +31,13 @@ public class StreamKLALBPacketLink implements KLALBPacketLink {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writePacket(KLALBPacket kp) throws IOException {
|
||||
out.writePacket(kp);
|
||||
public void writeKLALBPacket(KLALBPacket kp) throws IOException {
|
||||
out.writeKLALBPacket(kp);
|
||||
}
|
||||
|
||||
@Override
|
||||
public KLALBPacket readPacket() throws IOException {
|
||||
return in.readPacket();
|
||||
public KLALBPacket readKLALBPacket() throws IOException {
|
||||
return in.readKLALBPacket();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -68,5 +69,15 @@ public class StreamKLALBPacketLink implements KLALBPacketLink {
|
||||
public boolean isStream() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writePacket(ByteBuffer kp) throws IOException {
|
||||
out.writePacket(kp);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ByteBuffer readPacket() throws IOException {
|
||||
return in.readPacket();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user