summaryrefslogtreecommitdiff
path: root/lib/Socket.cc
diff options
context:
space:
mode:
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;