diff options
Diffstat (limited to 'lib/Socket.cc')
-rw-r--r-- | lib/Socket.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Socket.cc b/lib/Socket.cc index 0e882a1..c5a43ab 100644 --- a/lib/Socket.cc +++ b/lib/Socket.cc @@ -14,18 +14,18 @@ #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; +// cerr << "Socket(): connected = " << connected << "; readclosed = " << readclosed << "; writeclosed = " << writeclosed << endl; if (GetHandle() < 0) { throw GeneralException(_("Error creating socket.")); } } 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; +// 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) { } +Socket::Socket(int h) : Handle(h), connected(true), listening(false), writeclosed(false), readclosed(false) { } String Socket::GetName(void) { return String("socket"); @@ -40,12 +40,12 @@ bool Socket::IsListening(void) { } bool Socket::CanRead(void) { - cerr << "CanRead: connected = " << connected << "; readclosed = " << readclosed << endl; +// cerr << "CanRead: connected = " << connected << "; readclosed = " << readclosed << endl; return connected && !readclosed; } bool Socket::CanWrite(void) { - cerr << "CanWrite: connected = " << connected << "; writeclosed = " << writeclosed << endl; +// cerr << "CanWrite: connected = " << connected << "; writeclosed = " << writeclosed << endl; return connected && !writeclosed; } |