X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/c9cc3f7ba2112294c69c111082223da91554c095..f27c218d18ebf7198e07249aca1eed625da914fd:/Server/include/plaqui/server/controlserver.h?ds=sidebyside diff --git a/Server/include/plaqui/server/controlserver.h b/Server/include/plaqui/server/controlserver.h index 5b6eb23..7c5ea6e 100644 --- a/Server/include/plaqui/server/controlserver.h +++ b/Server/include/plaqui/server/controlserver.h @@ -30,7 +30,9 @@ #include "plaqui/server/connection.h" #include "plaqui/server/command.h" +#include "plaqui/server/httpresponse.h" #include +#include namespace PlaQui { @@ -50,6 +52,9 @@ namespace Server { private: + /// Mutex para el socket. + Glib::Mutex socket_mutex; + /// Señal para indicar que se recibió un comando. SignalCommandReceived command_received; @@ -77,6 +82,11 @@ namespace Server { */ ControlServer(const sockbuf::sockdesc& sd); + /** + * Envia una respuesta. + */ + void send(const HTTPResponse& response); + /** * Obtiene la señal que avisa cuando se recibió un comando. */