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/webtrace-conv/ucb/utils.h File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include "config.h"

Compounds

struct  AVL_tree_st
struct  hash_table_st
struct  ll_st
struct  ts_strtok_st

Defines

#define FALSE   0
#define TRUE   1

Typedefs

typedef timeval tv_time
typedef timespec ts_time
typedef ts_strtok_st ts_strtok_state
typedef ll_st ll_node
typedef ll_stll
typedef ll hash_el
typedef hash_table_st hash_table
typedef int(* hash_function )(void *element, int num_slots)
typedef int(* sc_comparator )(void *element1, void *element2)
typedef void(* deletor )(void *element)
typedef AVL_tree_stAVL_tree
typedef AVL_tree_st AVL_tree_element
typedef int(* AVL_comparator )(void *node, void *comparison)
typedef void(* AVL_deletor )(void *deleteMe)

Functions

void dump_buf (FILE *std, char *buf, int retlen)
tv_time tv_timeadd (tv_time t1, tv_time t2)
tv_time tv_timesub (tv_time t1, tv_time t2)
tv_time tv_timemul (tv_time t1, double mult)
int tv_timecmp (tv_time t1, tv_time t2)
ts_time ts_timeadd (ts_time t1, ts_time t2)
ts_time ts_timesub (ts_time t1, ts_time t2)
ts_time ts_timemul (ts_time t1, double mult)
int ts_timecmp (ts_time t1, ts_time t2)
ts_strtok_statets_strtok_init (char *string)
char * ts_strtok (char *matching, ts_strtok_state *state)
int ts_strtok_finish (ts_strtok_state *state)
char * dumb_strnstr (char *str, char *substr, int n)
const char * dumb_strcasestr (const char *string, const char *substr)
int correct_write (int s, char *data, int len)
int correct_read (int s, char *data, int len)
int ll_add_to_end (ll *addToMe, void *data)
int ll_add_to_start (ll *addToMe, void *data)
ll ll_find (ll *findInMe, void *data, int(*compare)(void *d1, void *d2))
int ll_sorted_insert (ll *insertme, void *data, int(*compare)(void *d1, void *d2))
int ll_del (ll *delFromMe, void *data, int(*compare)(void *d1, void *d2), void(*nukeElement)(void *nukeMe))
int ll_delfirst (ll *delFromMe, void(*nukeElement)(void *nukeMe))
int ll_destroy (ll *destroyMe, void(*nukeElement)(void *nukeMe))
int ll_build (ll *buildMe, char *buildFromMe)
int chained_hash_create (int num_slots, hash_table *rt)
int chained_hash_destroy (hash_table ht, deletor d)
int chained_hash_insert (hash_table ht, void *element, hash_function f)
void * chained_hash_search (hash_table ht, void *element, hash_function f, sc_comparator c)
int chained_hash_delete (hash_table ht, void *element, hash_function f, deletor d, sc_comparator c)
int Tree_Add (AVL_tree *addToMe, void *addMe, AVL_comparator theComp)
int Tree_Delete (AVL_tree *deleteFromMe, void *deleteMe, AVL_comparator theComp, AVL_deletor theDel)
int Tree_Destroy (AVL_tree *destroyMe, AVL_deletor theDel)
AVL_tree Tree_Search (AVL_tree searchMe, void *searchForMe, AVL_comparator theComp)
AVL_tree Tree_First (AVL_tree searchMe)
AVL_tree Tree_Last (AVL_tree searchMe)
AVL_tree Tree_Next (AVL_tree searchMe)

Define Documentation

#define FALSE   0
 

#define TRUE   1
 


Typedef Documentation

typedef int(* AVL_comparator)(void *node, void *comparison)
 

typedef void(* AVL_deletor)(void *deleteMe)
 

typedef struct AVL_tree_st * AVL_tree
 

typedef struct AVL_tree_st AVL_tree_element
 

typedef void(* deletor)(void *element)
 

typedef ll hash_el
 

typedef int(* hash_function)(void *element, int num_slots)
 

typedef struct hash_table_st hash_table
 

typedef struct ll_st * ll
 

typedef struct ll_st ll_node
 

typedef int(* sc_comparator)(void *element1, void *element2)
 

typedef struct ts_strtok_st ts_strtok_state
 

typedef struct timespec ts_time
 

typedef struct timeval tv_time
 


Function Documentation

int chained_hash_create int    num_slots,
hash_table   rt
 

int chained_hash_delete hash_table    ht,
void *    element,
hash_function    f,
deletor    d,
sc_comparator    c
 

int chained_hash_destroy hash_table    ht,
deletor    d
 

int chained_hash_insert hash_table    ht,
void *    element,
hash_function    f
 

void* chained_hash_search hash_table    ht,
void *    element,
hash_function    f,
sc_comparator    c
 

int correct_read int    s,
char *    data,
int    len
 

int correct_write int    s,
char *    data,
int    len
 

const char* dumb_strcasestr const char *    string,
const char *    substr
 

char* dumb_strnstr char *    str,
char *    substr,
int    n
 

void dump_buf FILE *    std,
char *    buf,
int    retlen
 

int ll_add_to_end ll   addToMe,
void *    data
 

int ll_add_to_start ll   addToMe,
void *    data
 

int ll_build ll   buildMe,
char *    buildFromMe
 

int ll_del ll   delFromMe,
void *    data,
int(*    compare)(void *d1, void *d2),
void(*    nukeElement)(void *nukeMe)
 

int ll_delfirst ll   delFromMe,
void(*    nukeElement)(void *nukeMe)
 

int ll_destroy ll   destroyMe,
void(*    nukeElement)(void *nukeMe)
 

ll ll_find ll   findInMe,
void *    data,
int(*    compare)(void *d1, void *d2)
 

int ll_sorted_insert ll   insertme,
void *    data,
int(*    compare)(void *d1, void *d2)
 

int Tree_Add AVL_tree   addToMe,
void *    addMe,
AVL_comparator    theComp
 

int Tree_Delete AVL_tree   deleteFromMe,
void *    deleteMe,
AVL_comparator    theComp,
AVL_deletor    theDel
 

int Tree_Destroy AVL_tree   destroyMe,
AVL_deletor    theDel
 

AVL_tree Tree_First AVL_tree    searchMe
 

AVL_tree Tree_Last AVL_tree    searchMe
 

AVL_tree Tree_Next AVL_tree    searchMe
 

AVL_tree Tree_Search AVL_tree    searchMe,
void *    searchForMe,
AVL_comparator    theComp
 

char* ts_strtok char *    matching,
ts_strtok_state   state
 

int ts_strtok_finish ts_strtok_state   state
 

ts_strtok_state* ts_strtok_init char *    string
 

ts_time ts_timeadd ts_time    t1,
ts_time    t2
 

int ts_timecmp ts_time    t1,
ts_time    t2
 

ts_time ts_timemul ts_time    t1,
double    mult
 

ts_time ts_timesub ts_time    t1,
ts_time    t2
 

tv_time tv_timeadd tv_time    t1,
tv_time    t2
 

int tv_timecmp tv_time    t1,
tv_time    t2
 

tv_time tv_timemul tv_time    t1,
double    mult
 

tv_time tv_timesub tv_time    t1,
tv_time    t2
 


This document is generated by doxygen.