ns-allinone-2.35/tools/expoo.cc
int EXPOO_Traffic::command(int argc, const char*const* argv){
        
        if(argc==3){
                if (strcmp(argv[1], "use-rng") == 0) {
                        burstlen_.seed((char *)argv[2]);
                        Offtime_.seed((char *)argv[2]);
                        return (TCL_OK);
                }
        }
        return Application::command(argc,argv);
}
// Added by Debojyoti Dutta October 12th 2000
// This is a new command that allows us to use 
// our own RNG object for random number generation
// when generating application traffic
Added by Debojyoti Dutta October 12th 2000
This is a new command that allows us to use
our own RNG object for random number generation
when generating application traffic
Added by Debojyoti Dutta October 12th 2000 This is a new command that allows us to use our own RNG object for random number generation when generating application traffic
int EXPOO_Traffic::command(int argc, const char*const* argv){
        if(argc==3){
                if (strcmp(argv[1], "use-rng") == 0) {
                        burstlen_.seed((char *)argv[2]);
                        Offtime_.seed((char *)argv[2]);
                        return (TCL_OK);
                }
        }
        return Application::command(argc,argv);
}
int EXPOO_Traffic :: command ( int argc , const char * const * argv ) { if ( argc == 3 ) { if ( strcmp ( argv [ 1 ] , " " ) == 0 ) { burstlen_ . seed ( ( char * ) argv [ 2 ] ) ; Offtime_ . seed ( ( char * ) argv [ 2 ] ) ; return ( TCL_OK ) ; } } return Application :: command ( argc , argv ) ; }
Added by Debojyoti Dutta October 12th 2000
This is a new command that allows us to use
our own RNG object for random number generation
when generating application traffic
Added by Debojyoti Dutta October 12th 2000 This is a new command that allows us to use our own RNG object for random number generation when generating application traffic