X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/a0481d50f6da9cac5efd3502c3657b3fc461ec0d..e4f66a8221e3f2156d89a7a358073863503b2564:/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 }