File: logparse.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 (21 lines) | stat: -rw-r--r-- 411 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
#ifndef LOG_PARSE_H
#define LOG_PARSE_H

// Parsing NLANR root cache traces

#include <stdlib.h>
#include "config.h"

struct lf_entry {
	double rt;		/* request arrival time */
	u_int32_t cid;		/* client address */
	char *sid;
	u_int32_t size; 	/* page size */
	char* url;		/* url. NEED to be freed by caller */
};

const int MAXBUF = 4096;

int lf_get_next_entry(FILE *fp, lf_entry &ne);

#endif // LOG_PARSE_H