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.
- how can find out current used size in receive buffer in winsock?
- 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
Post a Comment