diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Socket.cc | 8 |
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; |