HTP
0.5
|
Functions | |
void | htp_connp_clear_error (htp_connp_t *connp) |
void | htp_connp_close (htp_connp_t *connp, const htp_time_t *timestamp) |
htp_connp_t * | htp_connp_create (htp_cfg_t *cfg) |
void | htp_connp_destroy (htp_connp_t *connp) |
void | htp_connp_destroy_all (htp_connp_t *connp) |
htp_conn_t * | htp_connp_get_connection (const htp_connp_t *connp) |
htp_tx_t * | htp_connp_get_in_tx (const htp_connp_t *connp) |
htp_log_t * | htp_connp_get_last_error (const htp_connp_t *connp) |
htp_tx_t * | htp_connp_get_out_tx (const htp_connp_t *connp) |
void * | htp_connp_get_user_data (const htp_connp_t *connp) |
void | htp_connp_in_reset (htp_connp_t *connp) |
void | htp_connp_open (htp_connp_t *connp, const char *client_addr, int client_port, const char *server_addr, int server_port, htp_time_t *timestamp) |
void | htp_connp_set_user_data (htp_connp_t *connp, const void *user_data) |
htp_tx_t * | htp_connp_tx_create (htp_connp_t *connp) |
void | htp_connp_tx_remove (htp_connp_t *connp, htp_tx_t *tx) |
void htp_connp_clear_error | ( | htp_connp_t * | connp | ) |
Clears the most recent error, if any.
[in] | connp |
void htp_connp_close | ( | htp_connp_t * | connp, |
const htp_time_t * | timestamp | ||
) |
Closes the connection associated with the supplied parser.
[in] | connp | |
[in] | timestamp | Optional. |
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.
[in] | cfg |
void htp_connp_destroy | ( | htp_connp_t * | connp | ) |
Destroys the connection parser and its data structures, leaving all the data (connection, transactions, etc) intact.
[in] | 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.
[in] | connp |
htp_conn_t* htp_connp_get_connection | ( | const htp_connp_t * | connp | ) |
Returns the connection associated with the connection parser.
[in] | connp |
htp_tx_t* htp_connp_get_in_tx | ( | const htp_connp_t * | connp | ) |
Retrieves the pointer to the active inbound transaction. In connection parsing mode there can be many open transactions, and up to 2 active transactions at any one time. This is due to HTTP pipelining. Can be NULL.
[in] | connp |
htp_log_t* htp_connp_get_last_error | ( | const 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.
[in] | connp |
htp_tx_t* htp_connp_get_out_tx | ( | const htp_connp_t * | connp | ) |
Retrieves the pointer to the active outbound transaction. In connection parsing mode there can be many open transactions, and up to 2 active transactions at any one time. This is due to HTTP pipelining. Can be NULL.
[in] | connp |
void* htp_connp_get_user_data | ( | const htp_connp_t * | connp | ) |
Retrieve the user data associated with this connection parser.
[in] | connp |
void htp_connp_in_reset | ( | htp_connp_t * | connp | ) |
This function is most likely not used and/or not needed.
[in] | connp |
void htp_connp_open | ( | htp_connp_t * | connp, |
const char * | client_addr, | ||
int | client_port, | ||
const char * | server_addr, | ||
int | server_port, | ||
htp_time_t * | timestamp | ||
) |
Opens connection.
[in] | connp | |
[in] | client_addr | Client address |
[in] | client_port | Client port |
[in] | server_addr | Server address |
[in] | server_port | Server port |
[in] | timestamp | Optional. |
void htp_connp_set_user_data | ( | htp_connp_t * | connp, |
const void * | user_data | ||
) |
Associate user data with the supplied parser.
[in] | connp | |
[in] | user_data |
htp_tx_t* htp_connp_tx_create | ( | htp_connp_t * | connp | ) |
Create a new transaction using the connection parser provided.
[in] | connp |
void htp_connp_tx_remove | ( | htp_connp_t * | connp, |
htp_tx_t * | tx | ||
) |
Removes references to the supplied transaction.
[in] | connp | |
[in] | tx |