Skip to content

Commit

Permalink
fixed clear_function
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu- committed Jul 25, 2018
1 parent 4610358 commit 4d4a967
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -340,7 +343,7 @@ int clear_inactive0();

};

void server_clear_function(u64_t u64);


extern conn_manager_t conn_manager;

Expand Down

0 comments on commit 4d4a967

Please sign in to comment.