mirror of
https://github.com/caozhiyi/CppNet.git
synced 2026-01-19 00:05:14 +08:00
modify timer interface and export header files.
This commit is contained in:
@@ -55,6 +55,10 @@ void CppNet::SetDisconnectionCallback(const connect_call_back& cb) {
|
||||
_cppnet_base->SetDisconnectionCallback(cb);
|
||||
}
|
||||
|
||||
void CppNet::SetTimerCallback(const timer_call_back& cb) {
|
||||
_cppnet_base->SetTimerCallback(cb);
|
||||
}
|
||||
|
||||
uint64_t CppNet::AddTimer(int32_t interval, const user_timer_call_back& cb, void* param, bool always) {
|
||||
return _cppnet_base->AddTimer(interval, cb, param, always);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user