From 4d4a9673e13ae9ae19ae71f2f0fd1a3d0ba961a8 Mon Sep 17 00:00:00 2001 From: wangyu- Date: Wed, 25 Jul 2018 05:01:47 -0500 Subject: [PATCH] fixed clear_function --- connection.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/connection.h b/connection.h index 421b119..10a5ecd 100644 --- a/connection.h +++ b/connection.h @@ -21,6 +21,8 @@ extern int report_interval; const int disable_conv_clear=0; +void server_clear_function(u64_t u64); + template struct conv_manager_t // manage the udp connections { @@ -280,6 +282,7 @@ struct conn_info_t //stores info for a raw connection.for client ,there is o conn_info_t() { + conv_manager.s.additional_clear_function=server_clear_function; } ~conn_info_t() @@ -340,7 +343,7 @@ int clear_inactive0(); }; -void server_clear_function(u64_t u64); + extern conn_manager_t conn_manager;