Exemple #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);
 }