summaryrefslogtreecommitdiff
path: root/lib/Socket.cc
diff options
context:
space:
mode:
authorpixel <pixel>2008-07-23 16:08:10 +0000
committerpixel <pixel>2008-07-23 16:08:10 +0000
commite16206217389ef842e6900f6bd8b5a761b3ff0c8 (patch)
treee95a85c69ad56fe7a26f69698a1f0382b1b83be3 /lib/Socket.cc
parent9740c861ac26ba5838ea1d38316800f4b4430a30 (diff)
Updating debug strings.
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 7c0dba1..f66fc5f 100644
--- a/lib/Socket.cc
+++ b/lib/Socket.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: Socket.cc,v 1.25 2007-06-17 11:14:18 pixel Exp $ */
+/* $Id: Socket.cc,v 1.26 2008-07-23 16:08:10 pixel Exp $ */
#ifdef _WIN32
#include <winsock2.h>
@@ -151,7 +151,7 @@ bool Socket::Connect(const String & host, int port) {
struct sockaddr_in remotesocketaddr;
if (!listening && !connected) {
-// cerr << " - Resolving '" << host << "'..." << endl;
+// std::cerr << " - Resolving '" << host << "'..." << std::endl;
if (!(remotehostent = gethostbyname(host.to_charp()))) {
return false;
}
@@ -159,9 +159,9 @@ 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;
+// std::cerr << " - Connecting to port " << port << " ..." << std::endl;
if (!connect(GetHandle(), (struct sockaddr *)&remotesocketaddr, sizeof(remotesocketaddr))) {
-// cerr << " - Connected." << endl;
+// std::cerr << " - Connected." << std::endl;
connected = true;
} else {
// std::cerr << " - Error connecting: " << strerror(errno) << std::endl;