What actions need to be made in the program so that, say, a message is missed. I tried to put sleep before the reception, it still comes)
1 answer
They come because the I / O manager writes them to your application's buffer, no matter what it is doing now.
If you want to create bad conditions for the passage of packets, then this implementation is called "simulation broken network), implemented with the help of special programs that allow you to do this in a few clicks.
One of the similar clumsy programs, you can simulate any problems in your network (Emulate lost packets, duplicate packets, delay packets, reorder, etc.)
- And the application buffer program can not be cut? - Kopkan
- one@Kopkan I think you can reduce the size of the network adapter's buffer, and then packets that do not have time to process will simply be dropped. It is necessary to go to the device manager - network adapters - the name of the adapter - in addition - Receive Buffers or Receive Buffers. - Firepro
- 2Although you can without a software method, cut the network cable, remove the shielding, and lay it along the wiring, or fluorescent lamp to wrap them and turn it on when you need interference, but through the program more convenient :) - Firepro
|