How to access TCP flags (RST flag in specific) of the windows Socket using C++
<p>I am working on client application (in C++, using windows socket) which connects to the database server. During the data transfer between client and server, the server sends RST packet (WSAECONNRESET). </p>

<p>Is it possible to <strong>read the TCP FLAGS</strong> (I want to track the value of <strong>RST flag</strong> to see when it is being sent by the server) using C++ (without using raw sockets) ?? If yes, then how to access and read the RST flag (associated with the socket) value (set or unset) ?  </p>