summaryrefslogtreecommitdiff
path: root/lib/Socket.cc
diff options
context:
space:
mode:
authorPixel <Pixel>2002-01-10 14:33:59 +0000
committerPixel <Pixel>2002-01-10 14:33:59 +0000
commit8db9fd8117d02604d4bbe7a6c943f912f5fc7b03 (patch)
treedb495cb2208200e7a5fb260189aa9de319d12144 /lib/Socket.cc
parentd07e04e5b9a175715269488b80c6ccc926d3f9b2 (diff)
Plop...
Diffstat (limited to 'lib/Socket.cc')
-rw-r--r--lib/Socket.cc12
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;
}