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