str >> port;
}
+ // Inicializa threads.
+ Glib::thread_init();
+
+ try {
// Corre el server.
Server server(port);
server.run(false);
+ } catch (const char* e) {
+ cerr << "Error: " << e << endl;
+ } catch (exception e) {
+ cerr << "Error: " << e.what() << endl;
+ } catch (...) {
+ cerr << "Error desconocido!" << endl;
+ }
return 0;
}