/*+********************************************************************** * File name : http_util.h * Title : Header file for HTTPD Utilities * Project : SW INFRASTRUCTURE * Date created : 15 OCT 1997 * Revision : Rev 1.0 * Author : Nir Ben-Yosef * * *-*********************************************************************/ #ifndef _HTTP_UTIL_ #define _HTTP_UTIL_ #define HASIZE 97 #define STR_LEN 80 typedef struct itm_struct { char itm_id [STR_LEN]; char itm_val[STR_LEN]; struct itm_struct *nxt_itm; }table_item ; typedef table_item* hash_table[HASIZE]; extern hash_table *init_table(void); extern int hash_insert (hash_table *, char *key , char *val); extern const char *hash_find(hash_table *,char* key); extern void print_table(int sock,hash_table *table); extern void close_table(hash_table *); extern char *uudecode(const char *bufcoded,char *resultbuf,int buflen); extern char *DecodeHexChars(char *string); extern int IntFromHex(char *string) ; extern void SwapChar(char *string, char oldCh, char newCh); #endif