X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/a0481d50f6da9cac5efd3502c3657b3fc461ec0d..a359eb714e150b2b59856d0056b9880aaaedd128:/Server/tests/client_test.cpp?ds=sidebyside diff --git a/Server/tests/client_test.cpp b/Server/tests/client_test.cpp index 4605619..02eb991 100644 --- a/Server/tests/client_test.cpp +++ b/Server/tests/client_test.cpp @@ -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;