public EzySocketClient()
 {
     this.ticketsQueue     = newTicketsQueue();
     this.codecCreator     = newCodecCreator();
     this.socketReader     = newSocketReader();
     this.socketWriter     = newSocketWriter();
     this.dataEventQueue   = new EzyQueue <EzySocketDataEvent>();
     this.statusEventQueue = new EzyQueue <EzySocketStatusEvent>();
     this.socketReader.setDataEventQueue(dataEventQueue);
     this.socketReader.setStatusEventQueue(statusEventQueue);
     this.socketReader.setDecoder(codecCreator.newDecoder(Int32.MaxValue));
     this.socketWriter.setTicketsQueue(ticketsQueue);
     this.socketWriter.setEncoder(codecCreator.newEncoder());
 }
Esempio n. 2
0
 public EzyBlockingPacketQueue(int capacity)
 {
     this.capacity = capacity;
     this.queue    = new EzyBlockingQueue <EzyPacket>();
 }
Esempio n. 3
0
 public void setTicketsQueue(EzyBlockingQueue <EzyArray> ticketsQueue)
 {
     this.ticketsQueue = ticketsQueue;
 }