Пример #1
0
 public EzyUdpSocketClient(EzyCodecFactory codecFactory)
 {
     this.codecFactory   = codecFactory;
     this.packetQueue    = new EzyBlockingPacketQueue();
     this.responseApi    = newResponseApi();
     this.socketStatuses = new EzyValueStack <EzySocketStatus>(EzySocketStatus.NOT_CONNECT);
 }
 public EzySocketClient()
 {
     this.codecFactory        = new EzySimpleCodecFactory();
     this.packetQueue         = new EzyBlockingPacketQueue();
     this.socketEventQueue    = new EzySocketEventQueue();
     this.responseApi         = newResponseApi();
     this.localEventQueue     = new List <EzyEvent>();
     this.localMessageQueue   = new List <EzyArray>();
     this.localSocketStatuses = new List <EzySocketStatus>();
     this.socketStatuses      = new EzyValueStack <EzySocketStatus>(EzySocketStatus.NOT_CONNECT);
 }
 public EzySocketResponseApi(EzySocketDataEncoder encoder,
                             EzyPacketQueue packetQueue)
     : base(packetQueue)
 {
     this.encoder = encoder;
 }
Пример #4
0
 public void setPacketQueue(EzyPacketQueue packetQueue)
 {
     this.packetQueue = packetQueue;
 }
 public EzyAbstractResponseApi(EzyPacketQueue packetQueue)
 {
     this.packetQueue = packetQueue;
 }