Definition in file tcp_utils.h.
Go to the source code of this file.
Functions | |
int | tcp_read (SOCKET sockfd, char *buffer, int maxlen) |
TBD. | |
int | tcp_write (SOCKET sockfd, const char *buff, int buff_len) |
TBD. | |
void | decode_keys_values (mihl_cnx_t *cnx, char *_request, int *nb_options, char *options_names[], char *options_values[], int maxnb_options, int *nb_variables, char *vars_names[], char *vars_values[], int maxnb_values) |
TBD. | |
int | read_file (char const *fname, char **file, int *length) |
Read en entire file in memory. |
int tcp_read | ( | SOCKET | sockfd, | |
char * | buffer, | |||
int | maxlen | |||
) |
TBD.
sockfd | TBD | |
buffer | TBD | |
maxlen | TBD |
Definition at line 47 of file tcp_utils.c.
int tcp_write | ( | SOCKET | sockfd, | |
const char * | buff, | |||
int | buff_len | |||
) |
TBD.
sockfd | TBD | |
buff | TBD | |
buff_len | TBD |
Definition at line 104 of file tcp_utils.c.
Referenced by mihl_send(), and send_file().
void decode_keys_values | ( | mihl_cnx_t * | cnx, | |
char * | _request, | |||
int * | nb_options, | |||
char * | options_names[], | |||
char * | options_values[], | |||
int | maxnb_options, | |||
int * | nb_variables, | |||
char * | vars_names[], | |||
char * | vars_values[], | |||
int | maxnb_values | |||
) |
TBD.
Called by: got_data_for_active_connexion
cnx | opaque context structure as returned by mihl_init() | |
_request | TBD | |
[out] | nb_options | TBD |
[out] | options_names | TBD |
[out] | options_values | TBD |
maxnb_options | TBD | |
[out] | nb_variables | TBD |
[out] | vars_names | TBD |
[out] | vars_values | TBD |
maxnb_values | TBD |
Definition at line 156 of file tcp_utils.c.
int read_file | ( | char const * | fname, | |
char ** | file, | |||
int * | length | |||
) |
Read en entire file in memory.
The buffer is dynamically allocated (malloc).
fname | TBD | |
file | TBD | |
length | TBD |
Definition at line 350 of file tcp_utils.c.
Referenced by send_file().