/** * 构造 */ public USocket(SocketListner listner, Protocal protocal) { this.listner = listner; this.protocal = protocal; buf = new ByteBuf(4096); //queue = new BlockingQueue<ByteBuf>(5000); }
/** * 装入一个监听器 */ public void setLister(SocketListner listner) { this.listner = listner; }
/** * 构造 */ public USocket(SocketListner listner, Protocal protocal) { this.listner = listner; this.protocal = protocal; buf = new ByteBuf(4096); }
/** * 构造 */ public USocket(SocketListner listner,Protocal protocal) { this.listner = listner; this.protocal = protocal; }
/** * 装入一个监听器F */ public void setLister(SocketListner listner) { this.listner = listner; }
/** * 构造 */ public USocket(SocketListner listner, Protocal protocal) { this.listner = listner; this.protocal = protocal; }