X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/6e0194f46ac77c18bfeabf84ef94a32f23e41073..20f9c9932f7c6e0ba6d50636a6d73420da79606b:/Server/include/plaqui/server/transmitter.h?ds=sidebyside diff --git a/Server/include/plaqui/server/transmitter.h b/Server/include/plaqui/server/transmitter.h index faff2ef..3e99f41 100644 --- a/Server/include/plaqui/server/transmitter.h +++ b/Server/include/plaqui/server/transmitter.h @@ -29,13 +29,18 @@ #define PLAQUI_TRANSMITTER_H #include "plaqui/server/connection.h" +//#include "plaqui/server/plant.h" #include -namespace Plaqui { +namespace PlaQui { + +namespace Server { /// Conexión para transmitir el estado de una planta. class Transmitter: public Connection { + // Métodos. + private: /** @@ -48,18 +53,29 @@ namespace Plaqui { /** * Destructor. */ - virtual ~Transmitter(void) {} + virtual ~Transmitter(void); /** * Constructor. * - * \param host Host al cual transmitir. - * \param port Puerto al cual transmitir. + * 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(const std::string& _host, + const Connection::Port& _port) throw(sockerr); + + /** + * Envia datos. */ - Transmitter(std::string host = "localhost", int port = 7528); + void send(const std::string& data); }; } +} + #endif // PLAQUI_TRANSMITTER_H