示例#1
0
		public SocketReader(Processor processor, System.Net.Sockets.TcpClient clientSocket)
		{
			this.networkStream = clientSocket.GetStream();
			this.processor = processor;
			exitFlag = false;
			thread = new System.Threading.Thread(this.Run);
			thread.Priority = System.Threading.ThreadPriority.Highest;
			rxHandler = new RxHandler(null, Processor.BUFFER_SIZE);
		}
示例#2
0
		/// <summary>
		/// Initialize the class. Use method CreateProcessor() to create an instance of the class
		/// </summary>
		protected Processor() 
			:base("Processor", 100)
		{
			state = State.Idle;
		 	rxHandler = new RxHandler(RxCallback, BUFFER_SIZE);
		}