X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/00cffd5f7c35a915c09d55e6292775e9e01bdeec..c90e905d76aed75379d220478e97fda0d34ec59b:/Server/include/plaqui/server/transmitter.h?ds=inline diff --git a/Server/include/plaqui/server/transmitter.h b/Server/include/plaqui/server/transmitter.h index 93b47e9..3e99f41 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: /** @@ -55,10 +58,19 @@ namespace Server { /** * 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); };