Ejemplo n.º 1
0
 public void SetTargetSocket(ISocketQy workSocket)
 {
     if (workSocket == null)
     {
         DebugQy.LogException(new NullReferenceException("workSocket is null.Check your SetTargetSocket()."));
         return;
     }
     m_tgWorkSocket = workSocket;
     m_tgWorkSocket.AnsyncSendMsg_Complete_Event += m_SendMessageCompleteCallBack;
     m_tgWorkSocket.AnsyncSendMsg_Failed_Event   += m_SendMessageFaliedCallBack;
     m_tgWorkSocket.AnsyncRecMsg_Complete_Event  += m_ReceiveMsgCompleteCallBack;
     m_tgWorkSocket.AnsyncRecMsg_Failed_Event    += m_ReceiveMsgFailedCallBack;
 }