+Server* server = NULL;
+
+void on_error(const Runnable::Error& code, const string& desc) {
+ cerr << "--------------------------------------------------------" << endl;
+ cerr << "Error en el servidor:" << endl;
+ cerr << "Código: " << code << endl;
+ cerr << "Descripción: " << desc << endl;
+ cerr << "--------------------------------------------------------" << endl;
+}
+
+void on_finished(void) {
+ cerr << "Murió el servidor!" << endl;
+ server = NULL;
+}
+