I'm building a fault tolerance system, and I need to be able to simulate socket errors that are low level.
That is, I would like to forcibly close them and simulate physical real world events in a reliable manner. Are there tools at an OS level that let me mess around with sockets? If so, what are they.