/// <summary> /// Should be overwritten to reset a <see cref="AutoResetEvent"/> or something else /// </summary> /// <param name="ns"></param> public virtual void OnReceive(NetState ns) { lock (this) mQueue.Enqueue(ns); }
public virtual bool HandleReceive(NetState ns) { ByteQueue buffer = ns.Buffer; if (buffer == null || buffer.Length <= 0) { return false; } return true; }