title: How do i forcibly process messages inside a thread?
body: <p>Despite having Application.ProcessMessages, which is only for the Main VCL Thread, is there a similiar method for a TThread class ? or how can i write one on my own ?</p>
  
  <p>lets say that on the client side i use SendBuf 2 times...</p>
  
  <pre><code>SendBuf(....
  SendBuf(....
  </code></pre>
  
  <p>on server side, OnRead gets fired 2 times, but between us i have already read the socket buffer in a single OnRead call, so how do i avoid the 2nd one without exceptions ? the only way i can think of is process the messages in the message queue so they'd get out of there already and won't fire that event again. (do it while reading)</p>