X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/6e0194f46ac77c18bfeabf84ef94a32f23e41073..802f79cdb0d688127b8a639cd3173d801a1466cd:/Server/src/controlserver.cpp diff --git a/Server/src/controlserver.cpp b/Server/src/controlserver.cpp index 69de3a7..8789af1 100644 --- a/Server/src/controlserver.cpp +++ b/Server/src/controlserver.cpp @@ -30,7 +30,7 @@ #include #include -using namespace Plaqui; +using namespace PlaQui::Server; ControlServer::ControlServer(const sockbuf::sockdesc& sd): Connection(sd) { @@ -50,20 +50,13 @@ void ControlServer::real_run(void) { bool is_first = true; while (!stop && socket.getline(buf, BUFFER_SIZE)) { #ifdef DEBUG - std::cerr << "Reciviendo (crudo): " << buf << std::endl; + std::cerr << "Reciviendo linea: " << buf << std::endl; #endif // DEBUG int len = strlen(buf); // Si tiene un retorno de carro, lo elimina. if (len && (buf[len-1] == '\r')) { buf[--len] = '\0'; } -#ifdef DEBUG - std::cerr << "Reciviendo (sin \\r): " << buf << std::endl; - std::cerr << "len: " << len << std::endl; - if (len == 1) { - std::cerr << std::hex << "Caracter: " << *buf << std::endl; - } -#endif // DEBUG // Si tiene contenido, lo agrego a la información del request. if (len) { // Si es la primera línea, es el request.