diff options
author | Pixel <Pixel> | 2002-01-10 14:32:42 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2002-01-10 14:32:42 +0000 |
commit | d07e04e5b9a175715269488b80c6ccc926d3f9b2 (patch) | |
tree | 477b6b408b540f261d951f3c245e649f6b7c77b9 | |
parent | 3a1e232b33dc8a80d18bbfd70655cc6824ebba59 (diff) |
Groua
-rw-r--r-- | lib/Handle.cc | 2 | ||||
-rw-r--r-- | lib/Socket.cc | 2 |
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) { } |