#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <limits.h>
#include <memory.h>
#include "agent.h"
#include "tclcl.h"
#include "packet.h"
#include "address.h"
#include "ip.h"
#include "random.h"
#include "raplist.h"
Include dependency graph for utilities.h:

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

Go to the source code of this file.
Data Structures | |
| class | DoubleList |
| class | DoubleListElem |
Functions | |
| void | Debug (int debugFlag, FILE *log, char *format,...) |
| FILE * | DebugEnable (unsigned int nodeid) |
|
||||||||||||||||||||
|
Definition at line 90 of file utilities.cc. Referenced by AckLostPacket(), DestroyTransHistoryEntry(), RapAgent::IpgTimeout(), RapAgent::LossDetection(), RapAgent::LossHandler(), RapAgent::recv(), RapAgent::RecvAck(), RapAgent::RttTimeout(), RapAgent::SendAck(), RapAgent::SendPacket(), RapAgent::start(), RapAgent::stop(), TimerLostPacket(), and RapAgent::UpdateTimeValues(). 00091 { 00092 if (debugFlag) 00093 { 00094 va_list ap; 00095 va_start(ap, format); 00096 vfprintf(log, format, ap); 00097 va_end(ap); 00098 fflush(log); 00099 } 00100 }
|
|
|
Definition at line 73 of file utilities.cc. References NAME_MAX. Referenced by RapAgent::listen(), and RapAgent::start(). 00074 { 00075 FILE *log; // Logfile for debug messages 00076 char logFileName[NAME_MAX]; 00077 00078 sprintf(logFileName, "rap.%u.log", nodeid); 00079 log = fopen(logFileName, "w"); 00080 assert(log != NULL); 00081 00082 return log; 00083 }
|
1.4.6