Does someone have used Network Emulator API exposed in VS 2010
- by Pritam
Hi,
I have seen VS2010 exposing Network Emulator API. I have installed it and trying to use this API, but not able detect whether it is really running with this code or not. Sometime I have given wrong profile name but it does not throw any error. Please find below my piece of code. If some one have used it please help me.
IntPtr m_emulatorHandle = IntPtr.Zero;
NetworkEmulationApi.LoadProfile(m_emulatorHandle, "300KB_WithLatency.xml");
NetworkEmulationApi.StartEmulation(m_emulatorHandle);
Thanks,
Pritam