Procházet zdrojové kódy

fixed clear_function

wangyu- před 7 roky
rodič
revize
4d4a9673e1
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      connection.h

+ 4 - 1
connection.h

@@ -21,6 +21,8 @@ extern int report_interval;
 
 const int disable_conv_clear=0;
 
+void server_clear_function(u64_t u64);
+
 template  <class T>
 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;