1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
11 #include <anna/core/util/CommandLine.hpp>
12 #include <anna/core/tracing/Logger.hpp>
13 #include <anna/core/tracing/TraceWriter.hpp>
15 #include <anna/http/functions.hpp>
17 #include "Application.hpp"
24 * Esta es una implementación de un Gateway que recibe peticiones de operaciones aritméticas
25 * desde un cliente que envía peticiones HTTP y un servidor que atiende peticiones en el protocolo
26 * anna::comm::SureTransport
28 * Usa la clase anna::timex::Context para gestionar automáticamente toda la creación y liberación
29 * de las transaciones usadas por la aplicación para temporizar las peticiones-respuestas.
31 int main (int argc, const char** argv)
33 CommandLine& commandLine (CommandLine::instantiate ());
34 http4comm::Application app;
36 http::functions::initialize ();
39 commandLine.initialize (argv, argc);
40 commandLine.verify ();
42 Logger::setLevel (Logger::Debug);
43 Logger::initialize ("http4comm", new anna::TraceWriter ("file.trace", 4048000));
47 catch (Exception& ex) {
48 cout << ex.asString () << endl;