Ejemplo n.º 1
0
 void AsysnCoonectCallBack(bool sucess, NetSocket.ErrorSocket tmpError, string exception)
 {
     Debug.LogError("---AsysnCoonectCallBack---- sucess = " + sucess);
     if (sucess)
     {
         sendThread = new Thread(LoopSendMsg);
         sendThread.Start();
     }
 }
Ejemplo n.º 2
0
 void CallBackSend(bool sucess, NetSocket.ErrorSocket tmpError, string exception)
 {
     // Debug.LogError("---CallBackSend---- sucess = "+ sucess+ ",tmpError = "+ tmpError+ ",exception ="+ exception);
     if (sucess)
     {
     }
     else
     {
     }
 }
Ejemplo n.º 3
0
 void CallBackDisconnect(bool sucess, NetSocket.ErrorSocket tmpError, string exception)
 {
     if (sucess)
     {
         sendThread.Abort();
     }
     else
     {
     }
 }
Ejemplo n.º 4
0
 void AsysnReciveCallBack(bool sucess, NetSocket.ErrorSocket error, string exception, byte[] byteMessage, string strMessage)
 {
     Debug.LogError("---AsysnReciveCallBack---- sucess = " + sucess + ",exception = " + exception + ",strMessage = " + strMessage);
     if (sucess)
     {
         PutRecvMsgToPool(byteMessage);
     }
     else
     {
     }
 }
Ejemplo n.º 5
0
    private void SendCallBack(bool isSuccess, NetSocket.ErrorSocket error, string expection)
    {
        if (!isSuccess)
        {
            m_callBackSend(isSuccess, error, expection);
        }



        //Debug.Log("send =="+error + expection);
        //Debug.Log(isSuccess);
    }
Ejemplo n.º 6
0
 private void ConnectCallBack(bool isSuccess, NetSocket.ErrorSocket error, string expection)
 {
     if (isSuccess)
     {
         sendThread = new Thread(LoopSending);
         sendThread.Start();
     }
     else
     {
         this.m_callBackConnect(isSuccess, error, expection);
     }
 }
Ejemplo n.º 7
0
    private void ReceiveCallBack(bool isSuccess, NetSocket.ErrorSocket error, string expection, byte[] byteData, string strMsg)
    {
        if (isSuccess)
        {
            ReceiveMsgToNetMsg(byteData);
        }
        else
        {
            //  Debug.Log(error + expection);
            m_callBackReceive(isSuccess, error, expection, byteData, strMsg);
        }

        // Debug.Log(error + expection);
    }
Ejemplo n.º 8
0
    private void DisConnectCallBack(bool isSuccess, NetSocket.ErrorSocket error, string expection)
    {
        if (isSuccess)
        {
            sendThread.Abort();
        }
        else
        {
            this.m_callBackDisConnect(isSuccess, error, expection);
            //Debug.Log(error + expection);
        }

        //  Debug.Log(error + expection);
    }
Ejemplo n.º 9
0
 public void CallBackRecv(bool sucess, NetSocket.ErrorSocket error, string exception, byte[] byteMessage, string strMessag)
 {
 }
Ejemplo n.º 10
0
 public void DisConnectCallBack(bool sucess, NetSocket.ErrorSocket error, string exception)
 {
 }
Ejemplo n.º 11
0
 public void SendCallBack(bool sucess, NetSocket.ErrorSocket error, string exception)
 {
     ///
 }