* ----------------------------------*/
int copy_tcp_connection(
tcp_connection_t * p_dest_connection,
- tcp_connection_t * p_source_connection
+ const tcp_connection_t * p_source_connection
)
{
if ( !p_dest_connection || !p_source_connection )
The requested monitor value is copied into a client-supplied char buffer.
Returns 0 on success, -1 otherwise. */
int peek_tcp_port_monitor(
- tcp_port_monitor_t * p_monitor,
+ const tcp_port_monitor_t * p_monitor,
int item,
int connection_index,
char * p_buffer,
/* Clients need a way to find monitors */
tcp_port_monitor_t * find_tcp_port_monitor(
- tcp_port_monitor_collection_t * p_collection,
+ const tcp_port_monitor_collection_t * p_collection,
in_port_t port_range_begin,
in_port_t port_range_end
)
* ----------------------------------*/
int copy_tcp_connection(
tcp_connection_t * /* p_dest_connection */,
- tcp_connection_t * /* p_source_connection */
+ const tcp_connection_t * /* p_source_connection */
);
/* ------------------------------------------------------------------------
The requested monitor value is copied into a client-supplied char buffer.
Returns 0 on success, -1 otherwise. */
int peek_tcp_port_monitor(
- tcp_port_monitor_t * /* p_monitor */,
+ const tcp_port_monitor_t * /* p_monitor */,
int /* item, ( item of interest, from tcp_port_monitor_peekables enum ) */,
int /* connection_index, ( 0 to number of connections in monitor - 1 )*/,
char * /* p_buffer, buffer to receive requested value */,
/* Clients need a way to find monitors */
tcp_port_monitor_t * find_tcp_port_monitor(
- tcp_port_monitor_collection_t * /* p_collection */,
+ const tcp_port_monitor_collection_t * /* p_collection */,
in_port_t /* port_range_begin */,
in_port_t /* port_range_end */
);