示例#1
0
static int32 Sql_P_KeepaliveTimer(uint32 tick,CTaskMgr::CTask* PTask)
{
	Sql_t* self = (Sql_t*)PTask->m_data;
	ShowInfo("Pinging SQL server to keep connection alive...\n");
	Sql_Ping(self);
	return 0;
}
示例#2
0
文件: sql.c 项目: icxbb-xx/Hercules-1
/// Wrapper function for Sql_Ping.
///
/// @private
static int Sql_P_KeepaliveTimer(int tid, unsigned int tick, int id, intptr_t data)
{
	Sql* self = (Sql*)data;
	ShowInfo("Pinging SQL server to keep connection alive...\n");
	Sql_Ping(self);
	return 0;
}