public void Release() { Debuger.Log(); if (m_session != null) { m_session.SetReceiveListener(null); m_session.Active(false); m_session = null; } }
//================================================================= public void Create(uint id, int authId, FSPSession session, Action <FSPPlayer, FSPMessage> listener) { Debuger.Log("id:{0}, authId:{1}, sid:{2}", id, authId, session.id); m_id = id; m_authId = authId; m_RecvListener = listener; m_session = session; m_session.SetReceiveListener(OnRecvFromSession); m_FrameCache = new Queue <FSPFrame>(); }