c++ - How to find currently used size of UDP receive buffer in Winsock -


i have udp socket in blocking mode, have bursts of packets , getting lost.

  1. how can find out current used size in receive buffer in winsock?
  2. how can understand whether system discarding packets?

wsaioctl passed fionread documented way:

if socket passed in s parameter message oriented (for example, type sock_dgram), fionread returns reports total number of bytes available read, not size of first datagram (message) queued on socket.

i think answers first question. second, see no way programmatically figure out. should use sequence numbers in application detect gaps, , @ receive buffer size , guess if it's close full, losses due running out of buffer space.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -