コード例 #1
0
        public void SessionClose(Int64 nSessionID)
        {
            GateCloseSessionReq msgToSession = new GateCloseSessionReq()
            {
                SessionId = nSessionID
            };

            m_ffrpc.Call(m_strDefaultGate, msgToSession);
        }
コード例 #2
0
        public void ClosePlayer(Player player)
        {
            GateCloseSessionReq msgToSession = new GateCloseSessionReq()
            {
                Session_id = player.nSessionID
            };

            m_ffrpc.Call(m_strDefaultGate, msgToSession);
        }
コード例 #3
0
        //! 关闭某个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);
        }