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 wall-c...
Sat, 4 Apr, 2020 at 11:25 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 Standard NetSim Pro Applicable Releases v9 v10    v11 v11.1 v12.0 fprintf() statement can be used to prin...
Fri, 24 Jan, 2020 at 11:11 AM
Are there any videos on how to link your code to NetSim?
Yes, please see https://www.youtube.com/watch?v=UAZuflGNEps&index=7&list=PLS8vhyBd_bXnly7paSPdvwt2r7xKMo6tV 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?
Applicable Versions NetSim Standard NetSim Pro The payload of the packet is added in the application layer while generating the packet. NetSim adds...
Tue, 15 Sep, 2020 at 3:38 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...
Sat, 13 Apr, 2019 at 8:14 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 ?
NOTE: Procedure may vary for different releases of NetSim. Please follow the steps mentioned under applicable release. Applicable versions NetSim Stan...
Tue, 17 Mar, 2020 at 5:03 PM
What are DLL files in NetSim?
DLL is a dynamic link library file format used for holding multiple codes and procedures for Windows programs. DLL files were created so that multiple progr...
Fri, 1 Feb, 2019 at 3:01 PM