Exemple #1
0
 void OnApplicationQuit()
 {
     if (mSocket != null)
     {
         mSocket.Close();
     }
 }
Exemple #2
0
 public void Close()
 {
     if (mSocket != null)
     {
         mSocket.Close();
         mSocket = null;
     }
 }
Exemple #3
0
 void OnApplicationQuit()
 {
     if (mSocket != null)
     {
         Net.Instance.Send((int)ActionType.LeaveRoom, null, null);
         mSocket.Close();
     }
 }
Exemple #4
0
 private void OnApplicationQuit()
 {
     if (mSocket != null)
     {
         if (mSocket.mConnectStatusCallback != null)
         {
             mSocket.mConnectStatusCallback = null;
         }
         mSocket.Close();
     }
 }
Exemple #5
0
    public bool StopService()
    {
        serviceState = ENetServiceState.Stop;

        if (_socketCon != null)
        {
            _socketCon.Close();
            _socketCon = null;
        }

        return(true);
    }
Exemple #6
0
    //关闭连接
    public void Close()
    {
        setNetStatus(2);

        if (_socketCon != null)
        {
            _socketCon.Close();
            _socketCon = null;
        }

        SendreceiveManage.getInstance().clear();
    }
Exemple #7
0
    //关闭连接
    public void Close()
    {
        setNetStatus(2);

        if (_socketCon != null)
        {
            _socketCon.Close();
            _socketCon = null;
        }

        MessageQueueManage.getInstance().clearData();
    }
Exemple #8
0
    //关闭连接
    public void Close()
    {
        setNetStatus(2);

        if (_socketCon != null)
        {
            _socketCon.Close();
            _socketCon = null;
        }

        recDataQueue.Clear();
        sendMemory.Clear();
        pbnoCurr.setNull();
    }