]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/include/plaqui/server/server.h
Se agregan mas cosas nuevas, todavia no compila.
[z.facultad/75.42/plaqui.git] / Server / include / plaqui / server / server.h
index f16e2dfbb5eed5e0e4666abf23386345fa7982a4..3776cc72e9462dd1e6a2fd569b9b247efa68d016 100644 (file)
@@ -67,19 +67,23 @@ namespace Server {
 
                // Métodos.
 
 
                // Métodos.
 
-               private:
+               protected:
 
                        /**
 
                        /**
-                        * Entra en el loop para atender conexiones.
+                        * Obtiene una nueva \ref Connection "conexión".
+                        *
+                        * \param sd Descriptor del socket de la nueva conexión.
+                        *
+                        * \return Nueva conexión.
                         */
                         */
-                       virtual void real_run(void);
+                       virtual Connection* new_connection(const sockbuf::sockdesc& sd);
 
                public:
 
                        /**
                         * Destructor.
                         */
 
                public:
 
                        /**
                         * Destructor.
                         */
-                       virtual ~Server(void) {}
+                       virtual ~Server(void);
 
                        /**
                         * Constructor.
 
                        /**
                         * Constructor.
@@ -120,7 +124,7 @@ namespace Server {
                         *
                         * \todo Hacer un tipo Command abstracto o algo así.
                         */
                         *
                         * \todo Hacer un tipo Command abstracto o algo así.
                         */
-                       void on_connection_command_received(void* command);
+                       void on_control_command_received(void* command);
 
        };
 
 
        };