windows - Testing network interrupts in software -


i have network c++ program in windows i'd test network disconnects @ various times. options?

currently am:

  1. actually disconnecting network wire of computer
  2. using ipconfig /release
  3. 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

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -