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:
- 44:ffd9a11d4f95
- Parent:
- 39:8d4d653d94bd
- Child:
- 47:ed8f44fa8db9
--- a/Socket/TCPSocketConnection.cpp Wed Jul 17 10:59:14 2013 +0000
+++ b/Socket/TCPSocketConnection.cpp Wed Jul 17 11:55:09 2013 +0000
@@ -40,13 +40,13 @@
int TCPSocketConnection::connect(const char* host, const int port) {
if (init_socket(SOCK_STREAM) < 0)
{
- printf("init_socket\n");
+ mbed_dbg("init_socket\n");
return -1;
}
if (set_address(host, port) != 0)
{
- printf("set_address\n");
+ mbed_dbg("set_address\n");
return -1;
}
if (picotcp_connect(_ep, (struct sockaddr *) &_remoteHost, sizeof(_remoteHost)) < 0) {
@@ -85,7 +85,7 @@
ret = picotcp_write(_ep, data, length);
if (ret < length) {
_ep->revents &= (~PICO_SOCK_EV_WR);
- //printf("Short write\n");
+ //mbed_dbg("Short write\n");
}
return ret;
}
@@ -118,7 +118,7 @@
ret = picotcp_read(_ep, data, length);
if (ret < length) {
_ep->revents &= (~PICO_SOCK_EV_RD);
- //printf("Short read\n");
+ //mbed_dbg("Short read\n");
}
return ret;
}
