コード例 #1
0
 private void ExceptionCaught(object sender, IoSessionExceptionEventArgs e)
 {
     Debug.Log(e.Exception);
     e.Session.Close(true);
     connector.Dispose();
     thread.Abort();
     isConnected = false;
     Debug.Log("client ExceptionCaught");
 }
コード例 #2
0
        /******************************/
        /*          Events            */
        /******************************/
        #region Events

        /// <summary>
        /// HandleException
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void HandleException(Object sender, IoSessionExceptionEventArgs e)
        {
            _logger.Info(String.Format("Exception {0}", e.Exception.Message));
        }
コード例 #3
0
 private void ExceptionCaught(object sender, IoSessionExceptionEventArgs e)
 {
     Debug.Log(e.Exception);
     e.Session.Close(true);
     Debug.Log("server ExceptionCaught");
 }
コード例 #4
0
        /******************************/
        /*      Server Events         */
        /******************************/
        #region Server Events

        /// <summary>
        /// ExceptionCaught
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private static void ExceptionCaught(object sender, IoSessionExceptionEventArgs e)
        {
            ScreenOutput(String.Format("Exception on {0}", e.Session.RemoteEndPoint));
            ScreenOutput(e.Exception.Message);
        }