X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/802f79cdb0d688127b8a639cd3173d801a1466cd..9523acd2d7be7b8bbbf6d8c786c68c91f9fcc700:/Server/include/plaqui/server/transmitter.h diff --git a/Server/include/plaqui/server/transmitter.h b/Server/include/plaqui/server/transmitter.h index c3467a4..211a31e 100644 --- a/Server/include/plaqui/server/transmitter.h +++ b/Server/include/plaqui/server/transmitter.h @@ -29,6 +29,7 @@ #define PLAQUI_TRANSMITTER_H #include "plaqui/server/connection.h" +//#include "plaqui/server/plant.h" #include namespace PlaQui { @@ -38,6 +39,8 @@ namespace Server { /// Conexión para transmitir el estado de una planta. class Transmitter: public Connection { + // Métodos. + private: /** @@ -50,15 +53,23 @@ namespace Server { /** * Destructor. */ - virtual ~Transmitter(void) {} + virtual ~Transmitter(void); /** * Constructor. * + * Los parámetros son modificados por los valores reales que toma + * una vez conectado. + * * \param host Host al cual transmitir. * \param port Puerto al cual transmitir. */ - Transmitter(std::string host = "localhost", int port = 7528); + Transmitter(std::string& _host, Connection::Port& _port); + + /** + * Envia datos. + */ + void send(const std::string& data); };