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 PicoTCP by
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 37:bdf736327c71
- Parent:
- 35:6078073547bb
- Child:
- 39:8d4d653d94bd
diff -r afa3ab5e06b3 -r bdf736327c71 Socket/TCPSocketConnection.cpp
--- a/Socket/TCPSocketConnection.cpp Wed Jun 26 06:27:32 2013 +0000
+++ b/Socket/TCPSocketConnection.cpp Wed Jul 03 08:56:01 2013 +0000
@@ -43,13 +43,12 @@
printf("init_socket\n");
return -1;
}
-
+
if (set_address(host, port) != 0)
{
printf("set_address\n");
return -1;
}
-
if (picotcp_connect(_ep, (struct sockaddr *) &_remoteHost, sizeof(_remoteHost)) < 0) {
close();
return -1;
@@ -78,7 +77,7 @@
ret = picotcp_write(_ep, data, length);
if (ret < length) {
_ep->revents &= (~PICO_SOCK_EV_WR);
- printf("Short write\n");
+ //printf("Short write\n");
}
return ret;
}
