public virtual void SocketOnReceive(object sender, byte[] data, int count) { if (OnReadSocketData != null) OnReadSocketData(sender, data, count); // put the received bytes to the parser lock (this) { StreamParser.Push(data, 0, count); } }