Esempio n. 1
0
    /// <summary>
    /// 关闭连接
    /// </summary>
    public void Close()
    {
        // AppFacade.Instance.RemoveCommand(NotiConst.DISPATCH_MESSAGE);
        //Debug.LogWarning("Close the HallSocketClient");
        //HallSocketClient.Close();
        Debug.LogWarning("Close the LogicSocketClient");
        LogicSocketClient.Close();
        timeOutList.Clear();
        isStopUpdate = true;

        sEvents.Clear();
        //hallSocket = null;
        //bt7Socket = null;
    }
Esempio n. 2
0
    //public void InitHallSocket()
    //{
    //    HallSocketClient.Close();
    //    HallSocketClient.OnRegister(ClientType.Hall);
    //}

    public void InitLogicSocket()
    {
        LogicSocketClient.Close();
        LogicSocketClient.OnRegister(ServerType.Logic);
    }