In-process flexible network emulator