X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/65bf2eef7ac487329a3af3cd1c06e7957afc3a6c..314ccce75a8585f940b69ff40faecc1725abbe37:/Server/src/connection.cpp?ds=inline diff --git a/Server/src/connection.cpp b/Server/src/connection.cpp index 086548a..18b5909 100644 --- a/Server/src/connection.cpp +++ b/Server/src/connection.cpp @@ -25,16 +25,29 @@ // $Id$ // -#include "connection.h" +#include "plaqui/server/connection.h" #include +#ifdef DEBUG +# include +#endif // DEBUG -using namespace Plaqui; +PlaQui::Server::Connection::~Connection(void) { +#ifdef DEBUG + std::cerr << __FILE__ << ": destructor." << std::endl; +#endif // DEBUG +} -Connection::Connection(const sockinetbuf& sb): - socket(sb) { +PlaQui::Server::Connection::Connection(const sockbuf::sockdesc& sd): + socket(sd) { +#ifdef DEBUG + std::cerr << __FILE__ << ": sd = " << sd.sock << std::endl; +#endif // DEBUG } -Connection::Connection(sockbuf::type type): +PlaQui::Server::Connection::Connection(sockbuf::type type): socket(type) { +#ifdef DEBUG + std::cerr << __FILE__ << ": type = " << type << std::endl; +#endif // DEBUG }