title: Flush the TCP receive data buffer?
body: <p>I am doing a program with Winsock to create a client and send data to a server in response to which server replies with a specific data block received, this is continued a number of times.</p>
  
  <p>The problem is some times my data block 1 gets overlapped with data block 2 so I want to flush out my TCP reception buffer after the 1st complete reception.</p>
  
  <p>I reffered to this link also <a href="https://stackoverflow.com/questions/19454634/how-do-i-flush-a-tcp-client-buffer">How do I &quot;flush&quot; a TCP Client Buffer?</a> but I cant wait till the reception occurs</p>
  
  <p><strong>How can I flush the TCP receive data buffer?</strong>
  I am doing my project in visual c++  </p>