title: TCP/ IP event that start reading process
body: <p>I'm developing a solution to send data from a microcontroller with a GPRS modem ( server) to my application in the computer ( the one client) over a TCP/IP connection.</p>
  
  <p>I designed first my application working with a serial port connection (to go step-by-step that was easier) and now I have to adapt it in order to receive from a socket instead of serial port, which I'm totally new in and I thought it would be more straight.</p>
  
  <p>I've been reading for days and I didn't get anything clear. Most of the solutions I see work just to send and receive a single packet, or are too complicated.</p>
  
  <p>My server is going to be sending packets every second and the client has to read them and then analyze them.</p>
  
  <p>I want something like this:</p>
  
  <p><code>this.serialPort.DataReceived += new SerialDataReceivedEventHandler(this.routineRx);</code></p>
  
  <p>But for NetworkStream. Something that wakes up the reading process ( RoutineRx) when there's something to read.</p>
  
  <p>Maybe I have to change my mind and forgetting about this kind of stuff. I'm trying to make the most of my old code.</p>
  
  <p>Maybe I'm asking something that has been asked many times before, but I really didn't find it. If so,sorry.</p>