ChatFailedNotify() private method

private ChatFailedNotify ( DccChatClient client, Exception ex ) : void
client DccChatClient
ex System.Exception
return void
Esempio n. 1
0
 private void OnConnnect(IAsyncResult ar)
 {
     if (m_closed)
     {
         return;
     }
     try
     {
         m_sock.EndConnect(ar);
     }
     catch (Exception e)
     {
         Dcc.ChatFailedNotify(this, e);
         Dcc.RemoveChatClient(this);
         return;
     }
     AfterConnect();
 }
Esempio n. 2
0
 internal override void Start()
 {
     if (!m_sock.Connected)
     {
         try
         {
             m_sock.BeginConnect(m_remoteEndPoint, OnConnnect, null);
         }
         catch (Exception e)
         {
             Dcc.ChatFailedNotify(this, e);
             return;
         }
         Dcc.AddChatClient(this);
     }
     else
     {
         m_remoteEndPoint = (IPEndPoint)m_sock.RemoteEndPoint;
         Dcc.AddChatClient(this);
         AfterConnect();
     }
 }