}
}
-Server::Server(int port): TCPServer(port) {
+Server::Server(const string& plant_filename, const Connection::Port& port):
+ TCPServer(port) {
#ifdef DEBUG
cerr << __FILE__ << ": port = " << port << endl;
#endif // DEBUG
// FIXME
Glib::Mutex::Lock lock(plants_mutex);
- plants["prueba"] = new Plant("prueba.xml");
- plants["prueba"]->signal_finished().connect(
+ plants["default"] = new Plant(plant_filename);
+ plants["default"]->signal_finished().connect(
SigC::bind<const char*>(
SigC::slot_class(*this, &Server::on_plant_finished),
- "prueba"));
- plants["prueba"]->run();
+ "default"));
+ plants["default"]->run();
}
Connection* Server::new_connection(