X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/00cffd5f7c35a915c09d55e6292775e9e01bdeec..667418327423ba116d24751926a95a2f1235849c:/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 93b47e9..87b0bd2 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: /** @@ -58,7 +61,13 @@ namespace Server { * \param host Host al cual transmitir. * \param port Puerto al cual transmitir. */ - Transmitter(std::string host = "localhost", int port = 7528); + Transmitter(const std::string& _host = "localhost", + const Connection::Port& _port = 7528); + + /** + * Envia datos. + */ + void send(const std::string& data); };