X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/b92547a5de3a3fb4f14a2bea4a4e776b8da3cb5c..d3ea2ff01c51df0df95cd23157267048e2c2fdcd:/Server/src/controlserver.cpp?ds=sidebyside diff --git a/Server/src/controlserver.cpp b/Server/src/controlserver.cpp index 348d772..144d236 100644 --- a/Server/src/controlserver.cpp +++ b/Server/src/controlserver.cpp @@ -56,7 +56,7 @@ void ControlServer::real_run(void) { #ifdef DEBUG cerr << __FILE__ << ": real_run()" << endl; #endif // DEBUG - char buf[BUFSIZ]; + //char buf[BUFSIZ]; while (!stop) { HTTPRequest request; socket >> request; @@ -99,11 +99,11 @@ void ControlServer::real_run(void) { // Command command = parse_command(request.uri); //signal_command_received().emit(command); #ifdef DEBUG - cerr << "Request: " << endl; - for (Request::const_iterator i = request.begin(); i != request.end(); - i++) { - cerr << " " << i->first << ": " << i->second << endl; - } + cerr << "Request: " << request << endl; + //for (HTTPRequest::const_iterator i = request.begin(); + // i != request.end(); i++) { + // cerr << " " << i->first << ": " << i->second << endl; + //} #endif // DEBUG // FIXME - hacer respuesta XML. // La respuesta hay que mandarla asincrónicamente porque no puedo @@ -127,8 +127,8 @@ Accept-Ranges: bytes response_xml << "
versión 0.2
" << endl; response_xml << "