#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <sys/time.h>
#include <unistd.h>
Include dependency graph for tools.hh:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Defines | |
| #define | DEBUG_ALWAYS 1 |
| #define | DEBUG_DEFAULT 1 |
| #define | DEBUG_DETAILS 6 |
| #define | DEBUG_IMPORTANT 2 |
| #define | DEBUG_LOTS_DETAILS 10 |
| #define | DEBUG_MORE_DETAILS 8 |
| #define | DEBUG_NEVER 11 |
| #define | DEBUG_NO_DETAILS 3 |
| #define | DEBUG_SOME_DETAILS 4 |
Functions | |
| void | DiffPrint (int msg_debug_level, const char *fmt,...) |
| void | DiffPrintWithTime (int msg_debug_level, const char *fmt,...) |
| int | GetRand () |
| void | GetTime (struct timeval *tv) |
| void | SetSeed (struct timeval *tv) |
Variables | |
| int | global_debug_level |
|
|
|
|
|
|
Definition at line 72 of file tools.hh. Referenced by OnePhasePullFilter::gradientTimeout(), DiffusionCoreAgent::recvMessage(), DiffusionCoreAgent::sendMessage(), and DiffusionRouting::sendRmst(). |
|
|
|
Definition at line 70 of file tools.hh. Referenced by GeoRoutingFilter::postProcessFilter(), RmstFilter::RmstFilter(), and RmstFilter::run(). |
|
|
|
Definition at line 69 of file tools.hh. Referenced by GetTime(). |
|
|
|
Definition at line 73 of file tools.hh. Referenced by DiffusionCoreAgent::processControlMessage(), RmstFilter::processCtrlMessage(), RmstFilter::processExpReq(), RmstFilter::processMessage(), RmstFilter::processTimer(), Rmst::syncHoleMap(), and RmstFilter::syncLocalCache(). |
|
||||||||||||||||
|
||||||||||||||||
|
|
Definition at line 84 of file tools.cc. References Random::random(). Referenced by GeoRoutingFilter::broadcastHeuristicValue(), DiffusionCoreAgent::DiffusionCoreAgent(), DiffusionRouting::DiffusionRouting(), GeoRoutingFilter::GeoRoutingFilter(), GradientFilter::GradientFilter(), DiffusionRouting::interestTimeout(), OnePhasePullFilter::OnePhasePullFilter(), GeoRoutingFilter::preProcessFilter(), OnePhasePullFilter::processNewMessage(), GradientFilter::processNewMessage(), EventQueue::randDelay(), GeoRoutingFilter::sendNeighborRequest(), GradientFilter::sendPositiveReinforcement(), DiffusionRouting::sendRmst(), and DiffusionRouting::subscribe(). 00085 { 00086 #ifdef NS_DIFFUSION 00087 return (Random::random()); 00088 #else 00089 return (rand()); 00090 #endif // NS_DIFFUSION 00091 }
Here is the call graph for this function: ![]() |
|
|
|
Definition at line 74 of file tools.cc. Referenced by DiffusionCoreAgent::DiffusionCoreAgent(), DiffusionRouting::DiffusionRouting(), GeoRoutingFilter::GeoRoutingFilter(), GradientFilter::GradientFilter(), OnePhasePullFilter::OnePhasePullFilter(), and TimerManager::TimerManager(). 00075 { 00076 #ifdef NS_DIFFUSION 00077 // Don't need to do anything since NS's RNG is seeded using 00078 // otcl proc ns-random <seed> 00079 #else 00080 srand(tv->tv_usec); 00081 #endif // NS_DIFFUSION 00082 }
|
|
|
Definition at line 53 of file tools.cc. Referenced by DiffPrint(), DiffPrintWithTime(), DiffusionCoreAgent::DiffusionCoreAgent(), DiffApp::parseCommandLine(), GearReceiverApp::parseCommandLine(), and GearSenderApp::parseCommandLine(). |
1.4.6