[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.3 Ns-3 Source Code

Now that you have used some of the ns-3 helpers you may want to have a look at some of the source code that implements that functionality. The most recent code can be browsed on our web server at the following link: http://code.nsnam.org/?sort=lastchange. If you click on the bold repository names on the left of the page, you will see changelogs for these repositories, and links to the manifest. From the manifest links, one can browse the source tree.

The top-level directory for one of our repositories will look something like:

drwxr-xr-x  [up]   
drwxr-xr-x         doc             manifest 
drwxr-xr-x         examples        manifest 
drwxr-xr-x         ns3             manifest 
drwxr-xr-x         regression      manifest 
drwxr-xr-x         samples         manifest 
drwxr-xr-x         scratch         manifest 
drwxr-xr-x         src             manifest 
drwxr-xr-x         tutorial        manifest 
drwxr-xr-x         utils           manifest 
-rw-r--r-- 135     .hgignore       file | revisions | annotate 
-rw-r--r-- 891     .hgtags         file | revisions | annotate 
-rw-r--r-- 441     AUTHORS         file | revisions | annotate 
-rw-r--r-- 17987   LICENSE         file | revisions | annotate 
-rw-r--r-- 4948    README          file | revisions | annotate 
-rw-r--r-- 4917    RELEASE_NOTES   file | revisions | annotate 
-rw-r--r-- 7       VERSION         file | revisions | annotate 
-rwxr-xr-x 99143   waf             file | revisions | annotate 
-rwxr-xr-x 28      waf.bat         file | revisions | annotate 
-rw-r--r-- 30584   wscript         file | revisions | annotate 

The source code is mainly in the src directory. You can view source code by clicking on the manifest link to the right of the directory name. If you click on the manifest link to the right of the src directory you will find a subdirectory. If you click on the manifest link next to the core subdirectory in under src, you will find a list of files. The first file you will find is assert.h. If you click on the file link, you will be sent to the source file for assert.h.

Our example scripts are in the examples directory. The source code for the helpers we have used in this chapter can be found in the src/helpers directory.


[ < ] [ > ]   [ << ] [ Up ] [ >> ]

This document was generated on July, 20 2008 using texi2html 1.76.