File: flowlist.h

package info (click to toggle)
ns2 2.35%2Bdfsg-2.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 78,780 kB
  • ctags: 27,490
  • sloc: cpp: 172,923; tcl: 107,130; perl: 6,391; sh: 6,143; ansic: 5,846; makefile: 816; awk: 525; csh: 355
file content (25 lines) | stat: -rw-r--r-- 494 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include<stdio.h>
#define hop_limit 50

struct flow_list{
double time;
double bw;
struct flow_list *next;
};

struct flow_event{
  double delay;
  double deltaCBR;
  double NetCBR;
};

struct flow_list *create_new_flow_event(double time, double bw);

void flow_list_insert(double time, double bw, struct flow_list **root);

void dump_flow_list_to_file(FILE* file, struct flow_list *root);

int get_no_events(struct flow_list *root);

struct flow_event* get_all_events(struct flow_list *root);