Exemplo n.º 1
0
 public void Release()
 {
     Debuger.Log();
     if (m_session != null)
     {
         m_session.SetReceiveListener(null);
         m_session.Active(false);
         m_session = null;
     }
 }
Exemplo n.º 2
0
        //---------------------------------------------------------

        public FSPPlayer(uint playerId, int timeout, FSPSession session, Action <FSPPlayer, FSPVKey> listener)
        {
            m_id      = playerId;
            m_Timeout = timeout;
            m_Session = session;
            m_Session.SetReceiveListener(OnSessionReceive);
            m_RecvListener = listener;
            WaitForExit    = false;
            m_FrameCache   = new Queue <FSPFrame>();
        }
Exemplo n.º 3
0
        //=================================================================
        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>();
        }