Ejemplo n.º 1
0
 //---------------------------------------------------------------------
 public void close()
 {
     if (mSocket != null)
     {
         mSocket.close();
         mSocket = null;
     }
 }
Ejemplo n.º 2
0
        //---------------------------------------------------------------------
        void _onSocketError(string error)
        {
            mSocket = null;

            if (OnSocketError != null)
            {
                OnSocketError(error);
            }
        }
Ejemplo n.º 3
0
        //---------------------------------------------------------------------
        void _onSocketClose(SessionCloseReason reason)
        {
            mSocket = null;

            if (OnSocketClosed != null)
            {
                OnSocketClosed(reason);
            }
        }
Ejemplo n.º 4
0
 //---------------------------------------------------------------------
 public EntityRpcSessionSuperSocketS(EntityMgr entity_mgr, SuperSocketSession socket)
 {
     mEntityMgr = entity_mgr;
     mSocket = socket;
     mSocket.OnSocketClosed = _onSocketClose;
     mSocket.OnSocketReceive = _onSocketReceive;
     mSocket.OnSocketError = _onSocketError;
     socket.IsConnected = true;
 }