X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/a0481d50f6da9cac5efd3502c3657b3fc461ec0d..989d0da7e93d155dde399bf3047ab6b4af550bb6:/Server/src/controlclient.cpp 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);