+
+Connection* Server::new_connection(
+ const sockbuf::sockdesc& sd) {
+#ifdef DEBUG
+ cerr << __FILE__ << ": new_connection(sd = " << sd.sock << ")"
+ << endl;
+#endif // DEBUG
+ ControlServer* connection = new ControlServer(sd);
+ // TODO verificar si el new se hace bien? no creo.
+ connection->signal_command_received().connect(
+ SigC::slot_class(*this, &Server::on_control_command_received));
+ // TODO:
+ return connection;
+}