Search code examples
c++windowssocketsudpwinsock

Windows : Ask Socket to deliver all packets (even the corrupted)


My current job is to analyse the kind of lost in a real time transmission.

The C++ software is made for Windows(using Visual Studio) with a Raw UDP Socket, i use the socket lib winsock2.h.

I just want to ask the socket or the OS, to delivers all the packets even the corrupted/discarded one.

How can i achieve that ?

Thanks


Solution

  • I found a solution

    The SIO_RCVALL control code enables a socket to receive all IPv4 or IPv6 packets passing through a network interface.

    https://msdn.microsoft.com/en-us/library/windows/desktop/ee309610(v=vs.85).aspx