예제 #1
0
		/// <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);
		}
예제 #2
0
		public virtual bool HandleReceive(NetState ns) {
			ByteQueue buffer = ns.Buffer;
			if (buffer == null || buffer.Length <= 0) {
				return false;
			}

			return true;
		}