Beispiel #1
0
 /**
  * 构造
  */
 public USocket(SocketListner listner, Protocal protocal)
 {
     this.listner  = listner;
     this.protocal = protocal;
     buf           = new ByteBuf(4096);
     //queue = new BlockingQueue<ByteBuf>(5000);
 }
Beispiel #2
0
 /**
  * 装入一个监听器
  */
 public void setLister(SocketListner listner)
 {
     this.listner = listner;
 }
Beispiel #3
0
 /**
  * 构造
  */
 public USocket(SocketListner listner, Protocal protocal)
 {
     this.listner  = listner;
     this.protocal = protocal;
     buf           = new ByteBuf(4096);
 }
Beispiel #4
0
 /**
  * 构造
  */
 public USocket(SocketListner listner,Protocal protocal)
 {
     this.listner = listner;
     this.protocal = protocal;
 }
Beispiel #5
0
 /**
  * 装入一个监听器F
  */
 public void setLister(SocketListner listner)
 {
     this.listner = listner;
 }
Beispiel #6
0
 /**
  * 构造
  */
 public USocket(SocketListner listner, Protocal protocal)
 {
     this.listner  = listner;
     this.protocal = protocal;
 }
Beispiel #7
0
 /**
  * 构造
  */
 public USocket(SocketListner listner, Protocal protocal)
 {
     this.listner = listner;
     this.protocal = protocal;
     buf = new ByteBuf(4096);
 }