]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/src/controlclient.cpp
Se agrega generacion de XML para dar el estado actual de la planta simulada.
[z.facultad/75.42/plaqui.git] / Server / src / controlclient.cpp
index f33fff5f3197989621377d30f6cc3d8d20006494..07c86803346d4dbee1060e0fa3e76f8fa876dfc2 100644 (file)
@@ -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);