Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

telnet.cc File Reference

#include "random.h"
#include "tcp.h"
#include "telnet.h"

Include dependency graph for telnet.cc:

Include dependency graph

Go to the source code of this file.

Compounds

class  TelnetAppClass

Functions

double tcplib_telnet_interarrival ()

Variables

TelnetAppClass class_app_telnet


Function Documentation

double tcplib_telnet_interarrival  ) 
 

Definition at line 2011 of file tcplib-telnet.cc.

References abort(), tcplib_telnet, and Random::uniform().

Referenced by TelnetApp::next().

02012 {
02013         int pos = int(Random::uniform() * 10000.0);
02014         if ( pos < 0 || pos >= 10000 ) {
02015                 printf("oops, bug in tcplib_telnet_interarrival, pos = %d\n", 
02016                        pos);
02017                 abort();
02018         }
02019         return tcplib_telnet[pos];
02020 }

Here is the call graph for this function:


Variable Documentation

TelnetAppClass class_app_telnet [static]
 


Generated on Tue Apr 20 12:29:44 2004 for NS2.26SourcesOriginal by doxygen 1.3.3