X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/989d0da7e93d155dde399bf3047ab6b4af550bb6..9523acd2d7be7b8bbbf6d8c786c68c91f9fcc700:/Server/include/plaqui/server/server.h?ds=inline diff --git a/Server/include/plaqui/server/server.h b/Server/include/plaqui/server/server.h index 5f2e959..b295483 100644 --- a/Server/include/plaqui/server/server.h +++ b/Server/include/plaqui/server/server.h @@ -112,6 +112,16 @@ namespace Server { */ HTTPResponse* cmd_plant_list(void); + /** + * Maneja el comando plant/get. + */ + HTTPResponse* cmd_plant_get(const Command& command); + + /** + * Maneja el comando plant/get. + */ + HTTPResponse* cmd_plant_set(const Command& command); + /** * Maneja el comando plant/stop. */ @@ -129,7 +139,8 @@ namespace Server { * * \param port Puerto en el cual escuchar. */ - Server(int port = 7522); + Server(const std::string& plant_filename, + const Connection::Port& port = 7522); /** * Maneja los comandos recibidos por las conexiones.