NetSim Internals

How do I get the current simulation time?
    To start, note that the notion of time in a simulation is not directly related to the actual time that it takes to run a simulation (as measured by a wa...
Fri, 29 Sep, 2017 at 11:52 AM
What is the API to create a packet?
NetSim_PACKET* fn_NetSim_Packet_CreatePacket(int nLayer) is available as an API provided by Networkstack.dll.  This declaration can be found in pack...
Tue, 19 Apr, 2016 at 4:03 PM
How do I write to NetSim console for debugging ?
Applicable Versions NetSim StandardNetSim Pro Applicable Releases v9v10     fprintf() statement can be used to print to NetSim console using the defaul...
Thu, 11 Oct, 2018 at 4:24 PM
Are there any videos on how to link your code to NetSim?
Yes, please see A detailed write up in available...
Sat, 9 Jul, 2016 at 12:21 PM
How do I change the payload of a packet in NetSim?
The payload of the packet is added in the application layer while generating the packet. Note that encryption is done after the payload is added.  Ope...
Sat, 15 Sep, 2018 at 1:14 PM
What are the packet buffers in nodes in NetSim ? How can they be accessed ?
There are two packet buffers for regular nodes in NetSim. These are a. Socket buffer between the application and transport layers b. Access b...
Fri, 29 Sep, 2017 at 12:40 PM
How to use fprintf() with stderr, stdout and printf() statements in NetSim?
In NetSim printf() is customized, for which the syntax is available in main.h file. Both fprintf(stdout,"") and printf("") statements a...
Thu, 11 Oct, 2018 at 4:41 PM
How do I print TCP variables to a file or to console?
Applicable Versions NetSim StandardNetSim Pro Applicable Releases v9 Please use printf based debugging to get a clear understanding your code flow. It i...
Thu, 11 Oct, 2018 at 10:33 AM
How can I create my own packet and my own event in NetSim ?
Please refer to the attached document
Tue, 11 Jul, 2017 at 3:53 PM
What are DLL files in NetSim?
Dynamic – link libraries is a Microsoft implementation of shared library concept. DLLs have the extension .dll and can contain code, data, and resources in ...
Tue, 25 Jul, 2017 at 6:12 PM