]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/include/plaqui/server/receiver.h
Luca, si podes lleva esto, no creo que termine nada mas hoy
[z.facultad/75.42/plaqui.git] / Server / include / plaqui / server / receiver.h
index 91c3014acc5e23b131a2298ff5c459eadea0cabf..5b8c6351059ae0eb602a93fbe2c96475e0d094c8 100644 (file)
 #include <socket++/sockinet.h>
 #include <string>
 
-namespace Plaqui {
+namespace PlaQui {
+
+namespace Server {
 
        /// Conexión para recibir el estado de una planta.
        class Receiver: public Connection {
 
+               private:
+
+                       /**
+                        * Recibe la transmisión.
+                        */
+                       virtual void real_run(void);
+
                public:
 
                        /**
                         * Destructor.
                         */
-                       virtual ~Receiver(void) {}
+                       virtual ~Receiver(void);
 
                        /**
                         * Constructor.
@@ -52,13 +61,10 @@ namespace Plaqui {
                         */
                        Receiver(int port = 7528, std::string host = "localhost");
 
-                       /**
-                        * Recibe la transmisión.
-                        */
-                       virtual void run(void);
-
        };
 
 }
 
+}
+
 #endif // PLAQUI_RECEIVER_H