X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/f27c218d18ebf7198e07249aca1eed625da914fd..6bffb655ac989fe4f115763270f84175bf24e4bb:/Server/include/plaqui/server/tcpserver.h diff --git a/Server/include/plaqui/server/tcpserver.h b/Server/include/plaqui/server/tcpserver.h index 7465faa..1cd344f 100644 --- a/Server/include/plaqui/server/tcpserver.h +++ b/Server/include/plaqui/server/tcpserver.h @@ -32,6 +32,7 @@ #include "plaqui/server/connection.h" #include #include +#include namespace PlaQui { @@ -57,6 +58,19 @@ namespace Server { /// Lista de conexiones de control. typedef std::list ConnectionList; + public: + + /// Información sobre una conexión de contro. + struct ConnectionInfo { + /// Host. + std::string host; + /// Port. + unsigned port; + }; + + /// Lista de información de conexiones de control. + typedef std::vector ConnectionInfoList; + // Atributos. private: @@ -111,6 +125,11 @@ namespace Server { */ void on_connection_finished(Connection* connection); + /** + * Obtiene una lista conexiones de control abiertas. + */ + ConnectionInfoList get_connected(void); + }; }