title: How to make sure that WSASend() will send the data?
body: <p><code>WSASend()</code> will return immediately whether the data will be sent or not. But how to make sure that data will be sent, for example I have a button in my UI that will send <code>"Hello World!"</code> when pressed. Now I want to make sure that when the user click on this button the <code>"Hello World!"</code> will be sent at some point, but <code>WSASend()</code> could return <code>WSAEWOULDBLOCK</code> indicating that data will not be sent, so should I enclose <code>WSASend()</code> in a loop that does not exit until <code>WSASend()</code> returns <code>0</code> (success).</p>
  
  <p><strong>Note:</strong> I am using IOCP.</p>