]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/include/plaqui/server/server.h
Se emprolija un poco:
[z.facultad/75.42/plaqui.git] / Server / include / plaqui / server / server.h
index 5f2e959deb794bb2cf3fed3cf7a8dc24231db28b..9953fd908e9cc2d7e353ba8db2451a0ce8bf5a0c 100644 (file)
@@ -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) throw(sockerr);
 
                        /**
                         * Maneja los comandos recibidos por las conexiones.