forked from KNEMC/KLALB
制作图形界面
This commit is contained in:
@@ -5,12 +5,15 @@ import java.net.Socket;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.BlockingDeque;
|
||||
import java.util.concurrent.LinkedBlockingDeque;
|
||||
import java.util.concurrent.atomic.AtomicLong;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
import org.kne.cloud.network.mport.ServiceElement;
|
||||
|
||||
public class LocalTCPConnection extends TCPConnection {
|
||||
private UUID cuid;
|
||||
private static AtomicLong sng=new AtomicLong(1);
|
||||
|
||||
private long cuid;
|
||||
private ServiceElement serviceElement;
|
||||
|
||||
|
||||
@@ -21,16 +24,16 @@ private volatile long inputcount = 1;
|
||||
private volatile long outputcount = 1;
|
||||
public LocalTCPConnection(Socket s) throws IOException {
|
||||
super(s);
|
||||
cuid=UUID.randomUUID();
|
||||
cuid=sng.getAndIncrement();
|
||||
}
|
||||
public LocalTCPConnection(Socket s,UUID uid) throws IOException {
|
||||
public LocalTCPConnection(Socket s,long uid) throws IOException {
|
||||
super(s);
|
||||
cuid=uid;
|
||||
}
|
||||
public UUID getCuid() {
|
||||
public long getCuid() {
|
||||
return cuid;
|
||||
}
|
||||
public void setCuid(UUID cuid) {
|
||||
public void setCuid(long cuid) {
|
||||
this.cuid = cuid;
|
||||
}
|
||||
public ServiceElement getServiceElement() {
|
||||
|
||||
Reference in New Issue
Block a user