]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/tests/client_test.cpp
- Se arregla el bug de ControlClient::get_host() y ControlClient::get_port().
[z.facultad/75.42/plaqui.git] / Server / tests / client_test.cpp
index 4605619ab83cf67dc7ef4addf0d660bc487f7bc8..02eb99190ddc6cdc9a0bd1538b2484f1e8f3a3d5 100644 (file)
@@ -46,8 +46,9 @@ void on_connected(void) {
        cout << "   Conectado! :-)" << endl;
 }
 
-void on_ok_received(void) {
+void on_ok_received(const string& body) {
        cout << "   Respuesta recibida: OK! :-D" << endl;
+       cout << "       Body: " << body << endl;
 }
 
 void on_error_received(unsigned code) {
@@ -107,7 +108,7 @@ int main(int argc, char* argv[]) {
                                        break;
                                default:
                                        Command cmd(v[0], v[1]);
-                                       v.erase(v.begin(), v.begin() + 1);
+                                       v.erase(v.begin(), v.begin() + 2);
                                        cmd.set_args(v);
                                        client->send(cmd);
                                        break;