windows - Testing network interrupts in software -
i have network c++ program in windows i'd test network disconnects @ various times. options?
currently am:
- actually disconnecting network wire of computer
- using ipconfig /release
- using cports program close out socket completely
none of these methods though ideal me, , i'd emulate network problems more easily.
i connects fail, socket reads fail, , socket writes fail. great if there utility use emulate these types of problems.
it nice able build automated unit tests while emulated bad network up.
you might want abstract network layer, , can have unit tests inject interesting failure events @ appropriate points.
Comments
Post a Comment