X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/6f70c17ffefd6150b68ac0f64a8116e730437408..31a4d1fea320e59487fa28bbb406ee50d4e7ec76:/Server/include/plaqui/server/server.h diff --git a/Server/include/plaqui/server/server.h b/Server/include/plaqui/server/server.h index 0e5fe2b..20458bb 100644 --- a/Server/include/plaqui/server/server.h +++ b/Server/include/plaqui/server/server.h @@ -30,9 +30,10 @@ #include "plaqui/server/tcpserver.h" #include "plaqui/server/controlserver.h" -#include "plaqui/server/transmitter.h" +//#include "plaqui/server/transmitter.h" #include "plaqui/server/plant.h" #include "plaqui/server/command.h" +#include "plaqui/server/response.h" #include #include #include @@ -81,54 +82,69 @@ namespace Server { virtual Connection* new_connection(const sockbuf::sockdesc& sd); /** - * Maneja el comando server/status. + * Maneja el comando server/info. */ - HTTPResponse* cmd_server_status(void) const; + Response* cmd_server_info(void) const; /** * Maneja el comando connection/list. */ - HTTPResponse* cmd_connection_list(void); + Response* cmd_connection_list(void); /** * Maneja el comando connection/stop. */ - HTTPResponse* cmd_connection_stop(const Command& command); + Response* cmd_connection_stop(const Command& command); /** * Maneja el comando transmission/list. */ - HTTPResponse* cmd_transmission_list(void); + Response* cmd_transmission_list(void); /** * Maneja el comando transmission/start. */ - HTTPResponse* cmd_transmission_start(const Command& command); + Response* cmd_transmission_start(const Command& command); /** * Maneja el comando transmission/stop. */ - HTTPResponse* cmd_transmission_stop(const Command& command); + Response* cmd_transmission_stop(const Command& command); /** * Maneja el comando plant/list. */ - HTTPResponse* cmd_plant_list(void); + Response* cmd_plant_list(void); /** * Maneja el comando plant/get. */ - HTTPResponse* cmd_plant_get(const Command& command); + Response* cmd_plant_get(const Command& command); /** - * Maneja el comando plant/get. + * Maneja el comando plant/set. + */ + Response* cmd_plant_set(const Command& command); + + /** + * Maneja el comando plant/set_frequency. + */ + Response* cmd_plant_set_frequency(const Command& command); + + /** + * Maneja el comando plant/start. */ - HTTPResponse* cmd_plant_set(const Command& command); + Response* cmd_plant_start(const Command& command); /** * Maneja el comando plant/stop. */ - HTTPResponse* cmd_plant_stop(const Command& command); + Response* cmd_plant_stop(const Command& command); + + /** + * Maneja el comando plant/remove. + */ + Response* cmd_plant_remove(const Command& command); public: