summaryrefslogtreecommitdiff
path: root/lib/Socket.cc
diff options
context:
space:
mode:
authorPixel <Pixel>2001-12-26 16:36:22 +0000
committerPixel <Pixel>2001-12-26 16:36:22 +0000
commita0fa4b62216558259e5706f1cca5d26f75eacaa8 (patch)
tree61368ce6347b575af1b7adbb30025c9d7084e2a7 /lib/Socket.cc
parenta19f31f4de26dc13aa5bfbfbeabcea9c7aca9c99 (diff)
Pwet
Diffstat (limited to 'lib/Socket.cc')
-rw-r--r--lib/Socket.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Socket.cc b/lib/Socket.cc
index 62de4b6..9883898 100644
--- a/lib/Socket.cc
+++ b/lib/Socket.cc
@@ -96,7 +96,7 @@ bool Socket::Connect(const String & host, int port) {
struct sockaddr_in remotesocketaddr;
if (!listening && !connected) {
- cerr << " - Resolving '" << host << "'..." << endl;
+// cerr << " - Resolving '" << host << "'..." << endl;
if (!(remotehostent = gethostbyname(host.to_charp()))) {
return false;
}
@@ -104,12 +104,12 @@ bool Socket::Connect(const String & host, int port) {
remotesocketaddr.sin_family = AF_INET;
remotesocketaddr.sin_port = htons(port);
bcopy(remotehostent->h_addr, &remotesocketaddr.sin_addr, remotehostent->h_length);
- cerr << " - Connecting to port " << port << " ..." << endl;
+// cerr << " - Connecting to port " << port << " ..." << endl;
if (!connect(GetHandle(), (struct sockaddr *)&remotesocketaddr, sizeof(remotesocketaddr))) {
- cerr << " - Connected." << endl;
+// cerr << " - Connected." << endl;
connected = true;
} else {
- cerr << " - Error connecting: " << strerror(errno) << endl;
+// cerr << " - Error connecting: " << strerror(errno) << endl;
}
}
return connected;