From d07e04e5b9a175715269488b80c6ccc926d3f9b2 Mon Sep 17 00:00:00 2001 From: Pixel Date: Thu, 10 Jan 2002 14:32:42 +0000 Subject: Groua --- lib/Socket.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/Socket.cc') 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) { } -- cgit v1.2.3