dosdbellasim.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include "dosdbell.h"

Include dependency graph for dosdbellasim.c:

Go to the source code of this file.

Functions

 main (int argc, char **argv)
void set_Topology (FILE *filer)
void TCL_Write_Agents (FILE *)
void TCL_Write_Connections (FILE *)
void TCL_Write_DDOS_Agent (FILE *)
void TCL_Write_Final (FILE *)
void TCL_Write_Initial (FILE *)
void TCL_Write_Nodes (FILE *)

Variables

float bn_bw
float bn_delay
double bw
double DDOS_start_time
int diameter
double finish_time
int pack_size
double TCP_start_time
Topology topo


Function Documentation

main int  argc,
char **  argv
 

Definition at line 35 of file dosdbellasim.c.

References set_Topology(), TCL_Write_Agents(), TCL_Write_Connections(), TCL_Write_DDOS_Agent(), TCL_Write_Initial(), and TCL_Write_Nodes().

00035                            {
00036   FILE *filer;
00037  
00038   if(argc !=3){
00039     printf("USAGE: %s parameter_filename tcloutput_filename\n",argv[0]);
00040     exit(0);
00041   }
00042   else{
00043     filer = fopen(argv[1],"r");
00044     set_Topology(filer);
00045     fclose(filer);
00046     filer = fopen(argv[2],"w");
00047     TCL_Write_Initial(filer);
00048     TCL_Write_Nodes(filer);
00049     TCL_Write_Connections(filer);
00050     TCL_Write_Agents(filer);
00051     TCL_Write_DDOS_Agent(filer);
00052     /* TCL_Write_Final(filer);*/
00053     fclose(filer);
00054   }  
00055 }

Here is the call graph for this function:

void set_Topology FILE *  filer  ) 
 

void TCL_Write_Agents FILE *   ) 
 

void TCL_Write_Connections FILE *   ) 
 

void TCL_Write_DDOS_Agent FILE *   ) 
 

void TCL_Write_Final FILE *   ) 
 

void TCL_Write_Initial FILE *   ) 
 

void TCL_Write_Nodes FILE *   ) 
 


Variable Documentation

float bn_bw
 

Definition at line 33 of file dosdbellasim.c.

float bn_delay
 

Definition at line 32 of file dosdbellasim.c.

double bw
 

Definition at line 30 of file dosdbellasim.c.

double DDOS_start_time
 

Definition at line 28 of file dosdbellasim.c.

int diameter
 

Definition at line 26 of file dosdbellasim.c.

double finish_time
 

Definition at line 29 of file dosdbellasim.c.

int pack_size
 

Definition at line 31 of file dosdbellasim.c.

double TCP_start_time
 

Definition at line 27 of file dosdbellasim.c.

struct Topology topo
 

Definition at line 25 of file dosdbellasim.c.


Generated on Tue Mar 6 16:52:10 2007 for ns2 Network Simulator 2.29 by  doxygen 1.4.6