/// <summary> /// 发送了异常 /// </summary> /// <param name="ErrorCaught">Socket error code</param> internal void ErrorCaught(SocketError error) { // Skip disconnect errors if ((error == SocketError.ConnectionAborted) || (error == SocketError.ConnectionRefused) || (error == SocketError.ConnectionReset) || (error == SocketError.OperationAborted) || (error == SocketError.Shutdown)) { return; } // DoNothing ServerHandler?.FireExceptionCaught(new Exception(error.ToString())); }