#include "htp.h"
Functions | |
htp_conn_t * | htp_conn_create (htp_connp_t *connp) |
void | htp_conn_destroy (htp_conn_t *conn) |
int | htp_conn_remove_tx (htp_conn_t *conn, htp_tx_t *tx) |
htp_conn_t* htp_conn_create | ( | htp_connp_t * | connp | ) |
Creates a new connection structure.
connp |
void htp_conn_destroy | ( | htp_conn_t * | conn | ) |
Destroys a connection, as well as all the transactions it contains. It is not possible to destroy a connection structure yet leave any of its transactions intact. This is because transactions need its connection and connection structures hold little data anyway. The opposite is true, though it is possible to delete a transaction but leave its connection alive.
conn |
int htp_conn_remove_tx | ( | htp_conn_t * | conn, | |
htp_tx_t * | tx | |||
) |
Removes the given transaction structure, which makes it possible to safely destroy it. It is safe to destroy transactions in this way because the index of the transactions (in a connection) is preserved.
conn | ||
tx |