Function

int NetLogger (char * filename, char * dev)

Arguments

filename
The filename prefix for the output files
dev
A string containing the name of the network interface to log

SRS Refs

3.2.1.9b, 3.2.1.9c

Function

void beginLog ()

Arguments

Description

SRS Refs

3.2.1.9

Function

void endLog ( void)

Arguments

void
no arguments

Description

SRS Refs

3.2.1.9

This function tells the logger to end, and waits for it to end, before closing any output files.


Function

void addField (int field)

Arguments

field
The field to be added. The list of these can be found in NetLogger.h

SRS Refs

3.2.1.9a

Function

void setInterval (int intervaltype, int interval)

Arguments

intervaltype
The type of interval. This must be either INTERVAL_TIME or INTERVAL_PACKETS
interval
The value of the interval for the given type. If the interval type is TIME, this is specified in milliseconds, otherwise it's the number of packets.

SRS Refs

3.2.1.9d

Function

int isLogging ( void)

Arguments

void
no arguments

Description

SRS Refs

3.2.1.9

Function

int packetsLogged ( void)

Arguments

void
no arguments

Description

SRS Refs

3.2.1.9d

Function

void reset ( void)

Arguments

void
no arguments

Description

SRS Refs

3.2.1.9