title: Rejecting a TCP connection before it's being accepted?
body: <p>There are 3 different <code>accept</code> versions in winsock. Aside from the basic <code>accept</code> which is there for standard compliance, there's also <code>AcceptEx</code> which seems the most advanced version (due to it's overlapped io capabilities), and <code>WSAAccept</code>. The latter supports a condition callback, which as far as I understand, allows the rejection of connection requests before they're accepted (when the <code>SO_CONDITIONAL_ACCEPT</code> option is enabled). None of the other versions supports this functionality.</p>
  
  <p>Since I prefer to use <code>AcceptEx</code> with overlapped io, I wonder how come this functionality is only available in the simpler version?</p>
  
  <p>I don't know enough about the inner workings of TCP to tell wehter there's actually any difference between rejecting a connection before it has been accepted, and disconnecting a socket right after a connection has been established? And if there is, is there any way to mimic the <code>WSAAccept</code> functionality with <code>AcceptEx</code>?</p>
  
  <p>Can someone shed some light over this issue?</p>