summaryrefslogtreecommitdiff
path: root/lib/Socket.cc
diff options
context:
space:
mode:
authorPixel <Pixel>2002-01-10 14:32:42 +0000
committerPixel <Pixel>2002-01-10 14:32:42 +0000
commitd07e04e5b9a175715269488b80c6ccc926d3f9b2 (patch)
tree477b6b408b540f261d951f3c245e649f6b7c77b9 /lib/Socket.cc
parent3a1e232b33dc8a80d18bbfd70655cc6824ebba59 (diff)
Groua
Diffstat (limited to 'lib/Socket.cc')
-rw-r--r--lib/Socket.cc2
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) { }