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(); }
public void Send(ReceiveData data) { this._Queue.Enqueue(data); this._Event.Set(); }
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); }