X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/a0481d50f6da9cac5efd3502c3657b3fc461ec0d..ee2cb3d6c26ae319d20bde28f415393e96611ece:/Server/src/connection.cpp diff --git a/Server/src/connection.cpp b/Server/src/connection.cpp index 1b328c6..a8f17ea 100644 --- a/Server/src/connection.cpp +++ b/Server/src/connection.cpp @@ -55,10 +55,11 @@ Connection::Connection(const sockbuf::sockdesc& sd): #endif // DEBUG } -Connection::Connection(const sockbuf::type& type): - socket(type) { +Connection::Connection(const sockbuf::type& type, const std::string& host, + const Port& port): socket(type), host(host), port(port) { #ifdef DEBUG - cerr << __FILE__ << ": type = " << type << endl; + cerr << __FILE__ << ": type = " << type << " | host = " << host + << " | port = " << port << endl; #endif // DEBUG }