Exemple #1
0
 private void OnConnect(IAsyncResult ar)
 {
     try
     {
         MainSocket.EndConnect(ar);
         FireConnect();
         Receive();
     }
     catch (Exception ex)
     {
         FireException(ExceptionType.Connect, ex.Message);
     }
 }