title: TCP retransmission Timeout Detection in C++
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8244332/c-functions-according-to-tcp">C++ Functions According to TCP</a>  </p>
  </blockquote>
  
  
  
  <p>In my windows C++ application I'm using winsock API.</p>
  
  <p>I want to detect network errors in my C++ functions.</p>
  
  <p>Using wireshark I can see that after there is a network error there are TCP retransmission packets.</p>
  
  <p>Do you know how can I detect TCP retransmission timeouts with C++ functions?</p>