示例#1
0
int SvCon::onDisconnected(){
	Dispatcher* d = getDispatcher();
	d->delConnectServer(m_con_serv_id);
	ALogError(m_serv->getConfig().LogName) << "<action:server_disconnect> "
		"<event_loop:" << getEventLoop() << "> <conid:"
		<< getId() << "> <con_serv_id:" << m_con_serv_id
		<< ">"; 	
	return 0;
}
示例#2
0
SvCon::~SvCon(){
	Dispatcher* d = getDispatcher();
	d->delConnectServer(m_con_serv_id);
}