Go to the source code of this file.
|
htp_conn_t * | htp_conn_create (void) |
|
void | htp_conn_close (htp_conn_t *conn, const htp_time_t *timestamp) |
|
void | htp_conn_destroy (htp_conn_t *conn) |
|
htp_status_t | htp_conn_open (htp_conn_t *conn, const char *remote_addr, int remote_port, const char *local_addr, int local_port, const htp_time_t *timestamp) |
|
htp_status_t | htp_conn_remove_tx (htp_conn_t *conn, const htp_tx_t *tx) |
|
void | htp_conn_track_inbound_data (htp_conn_t *conn, size_t len, const htp_time_t *timestamp) |
|
void | htp_conn_track_outbound_data (htp_conn_t *conn, size_t len, const htp_time_t *timestamp) |
|
Closes the connection.
- Parameters
-
Creates a new connection structure.
- Returns
- A new connection structure on success, NULL on memory allocation failure.
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
-
htp_status_t htp_conn_open |
( |
htp_conn_t * |
conn, |
|
|
const char * |
remote_addr, |
|
|
int |
remote_port, |
|
|
const char * |
local_addr, |
|
|
int |
local_port, |
|
|
const htp_time_t * |
timestamp |
|
) |
| |
Opens a connection. This function will essentially only store the provided data for future reference. The timestamp parameter is optional.
- Parameters
-
[in] | conn | |
[in] | remote_addr | |
[in] | remote_port | |
[in] | local_addr | |
[in] | local_port | |
[in] | timestamp | |
- Returns
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
-
- Returns
- HTP_OK if transaction was removed (replaced with NULL) or HTP_ERROR if it wasn't found.
Keeps track of inbound packets and data.
- Parameters
-
[in] | conn | |
[in] | len | |
[in] | timestamp | |
Keeps track of outbound packets and data.
- Parameters
-
[in] | conn | |
[in] | len | |
[in] | timestamp | |