Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of cc3000_hostdriver_mbedsocket by
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 11:5e3771b29385
- Parent:
- 5:245ac5b73132
- Child:
- 13:5e36c267e62f
diff -r 7069c5f1e6f4 -r 5e3771b29385 Socket/TCPSocketConnection.cpp
--- a/Socket/TCPSocketConnection.cpp	Tue Oct 01 04:41:47 2013 +0000
+++ b/Socket/TCPSocketConnection.cpp	Tue Oct 01 21:17:44 2013 +0000
@@ -29,21 +29,21 @@
 int TCPSocketConnection::connect(const char *host, const int port) {
     if (init_socket(SOCK_STREAM, IPPROTO_TCP) < 0) {
 #if (CC3000_DEBUG == 1)
-        printf("DEBUG: Failed to create tcp socket.\n");
+        printf("DEBUG: Failed to create tcp socket.\r\n");
 #endif
         return -1;
     }
 
     if (set_address(host, port) != 0) {
 #if (CC3000_DEBUG == 1)
-        printf("DEBUG: Failed to set address (tcp).\n");
+        printf("DEBUG: Failed to set address (tcp).\r\n");
 #endif
         return -1;
     }
 
     if (_cc3000_module->_socket.connect(_sock_fd, (const sockaddr *)&_remote_host, sizeof(_remote_host)) < 0) {
 #if (CC3000_DEBUG == 1)
-        printf("DEBUG: Failed to connect (tcp).\n");
+        printf("DEBUG: Failed to connect (tcp).\r\n");
 #endif
         close();
         return -1;
    