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) {
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;