mirror of
https://github.com/wangyu-/UDPspeeder.git
synced 2025-01-19 06:19:34 +08:00
fixed clear_function
This commit is contained in:
parent
461035828a
commit
4d4a9673e1
@ -21,6 +21,8 @@ extern int report_interval;
|
|||||||
|
|
||||||
const int disable_conv_clear=0;
|
const int disable_conv_clear=0;
|
||||||
|
|
||||||
|
void server_clear_function(u64_t u64);
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
struct conv_manager_t // manage the udp connections
|
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()
|
conn_info_t()
|
||||||
{
|
{
|
||||||
|
conv_manager.s.additional_clear_function=server_clear_function;
|
||||||
}
|
}
|
||||||
|
|
||||||
~conn_info_t()
|
~conn_info_t()
|
||||||
@ -340,7 +343,7 @@ int clear_inactive0();
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void server_clear_function(u64_t u64);
|
|
||||||
|
|
||||||
extern conn_manager_t conn_manager;
|
extern conn_manager_t conn_manager;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user