diff options
Diffstat (limited to 'lib/Socket.cc')
-rw-r--r-- | lib/Socket.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Socket.cc b/lib/Socket.cc index cd3f4fd..0e882a1 100644 --- a/lib/Socket.cc +++ b/lib/Socket.cc @@ -14,6 +14,7 @@ #include "config.h" Socket::Socket() throw (GeneralException) : Handle(socket(AF_INET, SOCK_STREAM, 0)), connected(false), listening(false), writeclosed(false), readclosed(false) { + cerr << "Socket(): connected = " << connected << "; readclosed = " << readclosed << "; writeclosed = " << writeclosed << endl; if (GetHandle() < 0) { throw GeneralException(_("Error creating socket.")); } @@ -21,6 +22,7 @@ Socket::Socket() throw (GeneralException) : Handle(socket(AF_INET, SOCK_STREAM, Socket::Socket(const Socket & s) : Handle(s), connected(s.connected), listening(s.listening), writeclosed(s.writeclosed), readclosed(s.readclosed) { cerr << "Constructing a socket by copy...\n"; + cerr << "Socket(const Socket &): connected = " << connected << "; readclosed = " << readclosed << "; writeclosed = " << writeclosed << endl; } Socket::Socket(int h) : Handle(h), connected(true), listening(false) { } |