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

tclAppInit.cc File Reference

#include "config.h"

Include dependency graph for tclAppInit.cc:

Include dependency graph

Go to the source code of this file.

Functions

void init_misc (void)
int main (int argc, char **argv)
void fix_i386_linux_floats ()
int Tcl_AppInit (Tcl_Interp *interp)
void abort ()

Variables

EmbeddedTcl et_ns_lib
EmbeddedTcl et_ns_ptypes


Function Documentation

void abort  ) 
 

Definition at line 191 of file tclAppInit.cc.

Referenced by abort(), DSRAgent::acceptRouteReply(), Packet::access(), ReassemblyQueue::add(), MediaSegmentList::add(), MClientPagePool::add_segment(), imepAgent::aggregateObjectBlock(), Packet::alloc(), Packet::allocdata(), MClientPagePool::cache_replace(), TimerHandler::cancel(), SplayScheduler::cancel(), ListScheduler::cancel(), CBQClass::CBQClass(), MediaSegmentList::check_integrity(), HitCountList::check_integrity(), HttpMInvalCache::check_sstate(), ClientPage::ClientPage(), TcpAgent::closecwnd(), CorresHost::closecwnd(), TfrcSinkAgent::command(), QueueMonitorCompat::command(), TracePagePool::command(), Process::command(), MediaPagePool::command(), Marker::command(), JoBS::command(), FQ::command(), Demarker::command(), MediaRequest::copy(), IntTcpAgent::createTcpSession(), Demarker::Demarker(), Demarker::deque(), Scheduler::dispatch(), WebTrafSession::donePage(), EmpWebTrafSession::donePage(), QueueMonitorCompat::drop(), ReassemblyQueue::dumplist(), QueueMonitor::edrop(), RedPDQueue::enque(), JoBS::enque(), FQ::enque(), CBQueue::enque(), TfrcSinkAgent::est_loss(), ProxyTracePagePool::find_info(), CBQueue::find_lender(), LmsReceiver::find_nak(), imepAgent::findObjectSequence(), QueueMonitorCompat::flowstats(), Trace::format(), SatTrace::format(), CMUTrace::format_aodv(), TcpApp::get_data(), Process::get_data(), MediaServer::get_data(), MediaCache::get_data(), HttpUInvalAgent::get_data(), HttpApp::get_data(), MediaServer::get_reginfo(), TimerHandler::handle(), GridHandler::handle(), AdaptiveFidelityEntity::handle(), LmsSender::handle_lms_pkt(), LmsReceiver::handle_lms_pkt(), imepAgent::handlerTimer(), DSDV_Agent::helper_callback(), TcpAgent::initial_window(), NRAttribute::isEQ(), NRAttribute::isGE(), NRAttribute::isGT(), lf_get_next_entry(), IvsReceiver::lossMeter(), main(), Marker::Marker(), MediaSegmentList::merge_seg(), Node::namdump(), TcpAgent::opencwnd(), RFC793eduTcpAgent::opencwnd(), CorresHost::opencwnd(), QueueMonitorCompat::out(), QA::panic(), JoBS::pickDroppedRLC(), WebTrafPool::picksink(), EmpWebTrafPool::picksink(), EmpFtpTrafPool::picksink(), WebTrafPool::picktcp(), EmpWebTrafPool::picktcp(), EmpFtpTrafPool::picktcp(), Propagation::Pr(), Process::process_data(), MediaCache::process_data(), HttpApp::process_data(), HttpMInvalCache::process_inv(), DSDV_Agent::processUpdate(), random(), FullTcpAgent::reass(), TraceFile::recv(), TfrcSinkAgent::recv(), TcpApp::recv(), Sack1TcpAgent::recv(), SALink::recv(), rtqueue::recv(), IPNetwork::recv(), LmsAgent::recv(), IcmpAgent::recv(), God::recv(), FQ::recv(), CBQueue::recv(), ArpAgent::recv(), aodv_rqueue::recv(), AckReconsController::recv(), SSMSRMAgent::recv_rep_sess(), HttpMInvalCache::recv_upd(), EmpWebTrafPool::recycleSink(), EmpWebTrafPool::recycleTcp(), PacketQueue::remove(), MClientPagePool::repl_atomic(), MClientPagePool::repl_finegrain(), toraAgent::rtNotifyLinkStatus(), TimerHandler::sched(), Scheduler::schedule(), LmsAgent::send_downstream(), RBPVegasTcpAgent::send_much(), LmsAgent::send_upstream(), Agent::sendmsg(), TfrcSinkAgent::sendpkt(), Agent::sendto(), EnergyModel::set_node_state(), RNG::set_package_seed(), RNG::set_seed(), WRR_CBQueue::setM(), ClientPage::split_name(), TcpApp::start(), MediaApp::start(), TcpApp::stop(), tcplib_telnet_interarrival(), TBF::timeout(), imepAgent::toraCreateHeader(), imepAgent::toraExtractHeader(), imepAgent::toraHeaderLength(), TracePagePool::TracePagePool(), Mac802_11::txtime(), JoBS::updateError(), ClientPage::validate(), EmpFtpTrafSession::~EmpFtpTrafSession(), EmpWebTrafSession::~EmpWebTrafSession(), and WebTrafSession::~WebTrafSession().

00192 {
00193         Tcl& tcl = Tcl::instance();
00194         tcl.evalc("[Simulator instance] flush-trace");
00195 #ifdef abort
00196 #undef abort
00197         abort();
00198 #else
00199         exit(1);
00200 #endif /*abort*/
00201         /*NOTREACHED*/
00202 }

void fix_i386_linux_floats  )  [inline, static]
 

Definition at line 126 of file tclAppInit.cc.

Referenced by Tcl_AppInit().

00127 {}

void init_misc void   ) 
 

Definition at line 228 of file misc.cc.

00229 {
00230         (void)new VersionCommand;
00231         (void)new RandomCommand;
00232         (void)new TimeAtofCommand;
00233         (void)new HasInt64Command;
00234         (void)new HasSTLCommand;
00235 #if defined(HAVE_INT64)
00236         (void)new Add64Command;
00237         (void)new Mult64Command;
00238         (void)new Int64ToDoubleCommand;
00239 #endif
00240 }

int main int  argc,
char **  argv
 

Definition at line 58 of file tclAppInit.cc.

References Tcl_AppInit().

00059 {
00060     Tcl_Main(argc, argv, Tcl_AppInit);
00061     return 0;                   /* Needed only to prevent compiler warning. */
00062 }

Here is the call graph for this function:

int Tcl_AppInit Tcl_Interp *  interp  ) 
 

Definition at line 151 of file tclAppInit.cc.

References et_ns_lib, et_ns_ptypes, fix_i386_linux_floats(), init(), and init_misc().

Referenced by main().

00152 {
00153 #ifdef MEMDEBUG_SIMULATIONS
00154         extern MemTrace *globalMemTrace;
00155         globalMemTrace = new MemTrace;
00156 #endif
00157 
00158         fix_i386_linux_floats();
00159        
00160         if (Tcl_Init(interp) == TCL_ERROR ||
00161             Otcl_Init(interp) == TCL_ERROR)
00162                 return TCL_ERROR;
00163 
00164 #ifdef HAVE_LIBTCLDBG
00165         extern int Tcldbg_Init(Tcl_Interp *);   // hackorama
00166         if (Tcldbg_Init(interp) == TCL_ERROR) {
00167                 return TCL_ERROR;
00168         }
00169 #endif
00170 
00171         Tcl_SetVar(interp, "tcl_rcFileName", "~/.ns.tcl", TCL_GLOBAL_ONLY);
00172         Tcl::init(interp, "ns");
00173         init_misc();
00174         et_ns_ptypes.load();
00175         et_ns_lib.load();
00176 
00177 
00178 #ifdef TCL_TEST
00179         if (Tcltest_Init(interp) == TCL_ERROR) {
00180                 return TCL_ERROR;
00181         }
00182         Tcl_StaticPackage(interp, "Tcltest", Tcltest_Init,
00183                           (Tcl_PackageInitProc *) NULL);
00184 #endif /* TCL_TEST */
00185 
00186         return TCL_OK;
00187 }

Here is the call graph for this function:


Variable Documentation

EmbeddedTcl et_ns_lib
 

Definition at line 20 of file tclAppInit.cc.

Referenced by Tcl_AppInit().

EmbeddedTcl et_ns_ptypes
 

Definition at line 21 of file tclAppInit.cc.

Referenced by Tcl_AppInit().


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