summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPixel <Pixel>2002-01-10 13:58:45 +0000
committerPixel <Pixel>2002-01-10 13:58:45 +0000
commit692672cd414addadfe666904c10d4492a7fcbe17 (patch)
tree0f045a94ce524b06772b90f064663fbb7f83d727 /lib
parente0bc4e1a1263eaeaeeeacd306eee6cf01aa9e87c (diff)
Socket constructor fix.
Diffstat (limited to 'lib')
-rw-r--r--lib/Socket.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Socket.cc b/lib/Socket.cc
index 1d7314b..cd3f4fd 100644
--- a/lib/Socket.cc
+++ b/lib/Socket.cc
@@ -19,6 +19,10 @@ 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";
+}
+
Socket::Socket(int h) : Handle(h), connected(true), listening(false) { }
String Socket::GetName(void) {