summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Handle.cc2
-rw-r--r--lib/Socket.cc2
2 files changed, 3 insertions, 1 deletions
diff --git a/lib/Handle.cc b/lib/Handle.cc
index fe7c10b..f77b0c3 100644
--- a/lib/Handle.cc
+++ b/lib/Handle.cc
@@ -7,7 +7,7 @@
#include "config.h"
Handle::Handle(const Handle & nh) : h(nh.h >= 0 ? dup(nh.h) : nh.h), closed(nh.closed), nonblock(nh.closed), zfile(0), z(0) {
-// cerr << "Duplication of handle " << nh.h << " to " << h << endl;
+ cerr << "Duplication of handle " << nh.h << " to " << h << endl;
if ((h >= 0) && (nh.z)) {
SetZ(nh.z);
}
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) { }