X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/a0481d50f6da9cac5efd3502c3657b3fc461ec0d..f5a1e732bf3907cabd004932aba3256b31d9d282:/Server/src/controlclient.cpp?ds=inline diff --git a/Server/src/controlclient.cpp b/Server/src/controlclient.cpp index f33fff5..07c8680 100644 --- a/Server/src/controlclient.cpp +++ b/Server/src/controlclient.cpp @@ -63,6 +63,8 @@ void ControlClient::real_run(void) { finish(); return; } + host = socket->peerhost(); + port = socket->peerport(); // TODO sacar a la mierda? connected(); while (!stop) { @@ -85,7 +87,7 @@ void ControlClient::real_run(void) { } switch (response.status_code) { case HTTPMessage::OK: - ok_received(); + ok_received(response.get_body()); break; default: error_received(response.status_code);