title: How to find currently used size of UDP receive buffer in Winsock
body: <p>I have a UDP socket in blocking mode, I have bursts of packets and some are getting lost. </p>
  
  <ol>
  <li>How can I find out current used size in receive buffer in winsock?</li>
  <li>How can I understand whether system is discarding packets?</li>
  </ol>