public void SessionClose(Int64 nSessionID) { GateCloseSessionReq msgToSession = new GateCloseSessionReq() { SessionId = nSessionID }; m_ffrpc.Call(m_strDefaultGate, msgToSession); }
public void ClosePlayer(Player player) { GateCloseSessionReq msgToSession = new GateCloseSessionReq() { Session_id = player.nSessionID }; m_ffrpc.Call(m_strDefaultGate, msgToSession); }
//! 关闭某个session socket public EmptyMsgRet CloseSession(GateCloseSessionReq reqMsg) { if (m_dictClients.ContainsKey(reqMsg.SessionId) == false) { return(m_msgEmpty); } ClientInfo cinfo = m_dictClients[reqMsg.SessionId]; cinfo.sockObj.Close(); CleanupSession(cinfo, false); return(m_msgEmpty); }