ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  Download | 


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

ns-2/indep-utils/model-gen/http_active.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <sys/time.h>

Compounds

struct  connect

Defines

#define min(a, b)   ((a) <= (b) ? (a) : (b))
#define max(a, b)   ((a) >= (b) ? (a) : (b))
#define MAX_CONNECTIONS   1000

Enumerations

enum  client_states { PENDING_ACTIVE, ACTIVE, PENDING_IDLE, IDLE }
enum  event_types {
  SYN, ACT_REQ, ACT_RSP, END,
  REQ, RSP
}

Functions

void Usage (char *s)
void error_line (char *s)
void error_state (char *s)
void log_REQ (void)
void log_RSP (void)
void log_IDLE (char *s)
void set_connection (char *sp, char *dh, char *dp, enum event_types type)
void ClearConnections (void)
int ConnectionsActive (void)
int FindConnection (char *sp, char *dh, char *dp)
int AddConnection (char *sp, char *dh, char *dp)
int RemoveConnection (char *sp, char *dh, char *dp)
long elapsed_ms (char *end, char *start)
void main (int argc, char *argv[])
void tvsub (tdiff, t1, t0) struct timeval *tdiff

Variables

FILE * dumpFP
FILE * outFP
timeval time_stamp = {0,0}
int req
int rsp
char ts [20]
char sh [25]
char sp [10]
char gt [3]
char dh [25]
char dp [10]
char fl [5]
char current_src [25] = ""
enum client_states client_state = PENDING_ACTIVE
enum event_types event_type
char idle_begin [20]
char earliest_end [20]
char last_client_ts [20]
int active_connections = 0
connect connections [MAX_CONNECTIONS]
char new_line [500]
void * t1
void * t0

Define Documentation

#define max a,
     ((a) >= (b) ? (a) : (b))
 

#define MAX_CONNECTIONS   1000
 

#define min a,
     ((a) <= (b) ? (a) : (b))
 


Enumeration Type Documentation

enum client_states
 

Enumeration values:
PENDING_ACTIVE 
ACTIVE 
PENDING_IDLE 
IDLE 

enum event_types
 

Enumeration values:
SYN 
ACT_REQ 
ACT_RSP 
END 
REQ 
RSP 


Function Documentation

int AddConnection char *    sp,
char *    dh,
char *    dp
 

void ClearConnections void   
 

int ConnectionsActive void   
 

long elapsed_ms char *    end,
char *    start
 

void error_line char *    s
 

void error_state char *    s
 

int FindConnection char *    sp,
char *    dh,
char *    dp
 

void log_IDLE char *    s
 

void log_REQ void   
 

void log_RSP void   
 

void main int    argc,
char *    argv[]
 

int RemoveConnection char *    sp,
char *    dh,
char *    dp
 

void set_connection char *    sp,
char *    dh,
char *    dp,
enum event_types    type
 

void tvsub tdiff   ,
t1   ,
t0   
[static]
 

void Usage char *    s
 


Variable Documentation

int active_connections = 0
 

enum client_states client_state = PENDING_ACTIVE
 

struct connect connections[MAX_CONNECTIONS]
 

char current_src[25] = ""
 

char dh[25]
 

char dp[10]
 

FILE* dumpFP
 

char earliest_end[20]
 

enum event_types event_type
 

char fl[5]
 

char gt[3]
 

char idle_begin[20]
 

char last_client_ts[20]
 

char new_line[500]
 

FILE * outFP
 

int req
 

int rsp
 

char sh[25]
 

char sp[10]
 

void * t0
 

void * t1
 

struct timeval time_stamp = {0,0}
 

char ts[20]
 


This document is generated by doxygen.