HTP  0.3
Functions
htp_connection.c File Reference
#include "htp.h"
Include dependency graph for htp_connection.c:

Functions

htp_conn_thtp_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)

Detailed Description

Author:
Ivan Ristic ivanr.nosp@m.@web.nosp@m.kreat.nosp@m.or.c.nosp@m.om

Function Documentation

htp_conn_t* htp_conn_create ( htp_connp_t connp)

Creates a new connection structure.

Parameters:
connp
Returns:
A new htp_connp_t structure on success, NULL on memory allocation failure.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters:
conn

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters:
conn
tx
Returns:
1 if transaction was removed or 0 if it wasn't found

Here is the caller graph for this function: