00001
00011 #ifndef TCP_UTIL_H_
00012 #define TCP_UTIL_H_
00013
00014 int tcp_read( SOCKET sockfd, char *buffer, int maxlen );
00015
00016 int tcp_write( SOCKET sockfd, const char *buff, int buff_len );
00017
00018 void decode_keys_values( mihl_cnx_t *cnx, char *_request,
00019 int *nb_options, char *options_names[], char *options_values[], int maxnb_options,
00020 int *nb_variables, char *vars_names[], char *vars_values[], int maxnb_values );
00021
00022 int read_file( char const *fname, char **file, int *length );
00023
00024 #endif