Beispiel #1
0
 public void Send(ReceiveData data)
 {
     this._Queue.Enqueue(data);
     if (this._IsStoped)
     {
         this._IsStoped = false;
         ProcessData();
     }
 }
 public void Add(ReceiveData data)
 {
     _Queue.Enqueue(data);
     _Event.Set();
 }
Beispiel #3
0
 public void Send(ReceiveData data)
 {
     this._Queue.Enqueue(data);
     this._Event.Set();
 }
Beispiel #4
0
 private void ProcessPackage(byte[] data, int offset, int len)
 {
     byte[] packet = new byte[len];
     Buffer.BlockCopy(data, offset, packet, 0, len);
     ReceiveData receiveData = new ReceiveData(_Id, packet,GetIP());
     ReceiveCenter.Default.Add(receiveData);
 }