HTP
0.3
|
#include "htp.h"
Functions | |
void | htp_connp_clear_error (htp_connp_t *connp) |
void | htp_connp_close (htp_connp_t *connp, htp_time_t *timestamp) |
htp_connp_t * | htp_connp_create (htp_cfg_t *cfg) |
htp_connp_t * | htp_connp_create_copycfg (htp_cfg_t *cfg) |
void | htp_connp_destroy (htp_connp_t *connp) |
void | htp_connp_destroy_all (htp_connp_t *connp) |
void * | htp_connp_get_user_data (htp_connp_t *connp) |
htp_log_t * | htp_connp_get_last_error (htp_connp_t *connp) |
void | htp_connp_open (htp_connp_t *connp, const char *remote_addr, int remote_port, const char *local_addr, int local_port, htp_time_t *timestamp) |
void | htp_connp_set_user_data (htp_connp_t *connp, void *user_data) |
void htp_connp_clear_error | ( | htp_connp_t * | connp | ) |
Clears an existing parser error, if any.
connp |
void htp_connp_close | ( | htp_connp_t * | connp, |
htp_time_t * | timestamp | ||
) |
Closes the connection associated with the supplied parser.
connp | |
timestamp |
htp_connp_t* htp_connp_create | ( | htp_cfg_t * | cfg | ) |
Creates a new connection parser using the provided configuration. Because the configuration structure is used directly, in a multithreaded environment you are not allowed to change the structure, ever. If you have a need to change configuration on per-connection basis, make a copy of the configuration structure to go along with every connection parser.
cfg |
htp_connp_t* htp_connp_create_copycfg | ( | htp_cfg_t * | cfg | ) |
Creates a new configuration parser, making a copy of the supplied configuration structure.
cfg |
void htp_connp_destroy | ( | htp_connp_t * | connp | ) |
Destroys the connection parser and its data structures, leaving the connection data intact.
connp |
void htp_connp_destroy_all | ( | htp_connp_t * | connp | ) |
Destroys the connection parser, its data structures, as well as the connection and its transactions.
connp |
htp_log_t* htp_connp_get_last_error | ( | htp_connp_t * | connp | ) |
Returns the last error that occurred with this connection parser. Do note, however, that the value in this field will only be valid immediately after an error condition, but it is not guaranteed to remain valid if the parser is invoked again.
connp |
void* htp_connp_get_user_data | ( | htp_connp_t * | connp | ) |
Retrieve the user data associated with this connection parser.
connp |
void htp_connp_open | ( | htp_connp_t * | connp, |
const char * | remote_addr, | ||
int | remote_port, | ||
const char * | local_addr, | ||
int | local_port, | ||
htp_time_t * | timestamp | ||
) |
Opens connection.
connp | |
remote_addr | Remote address |
remote_port | Remote port |
local_addr | Local address |
local_port | Local port |
timestamp |
void htp_connp_set_user_data | ( | htp_connp_t * | connp, |
void * | user_data | ||
) |
Associate user data with the supplied parser.
connp | |
user_data |