Add a bunch of APNs
Fork of C027_Support by
Diff: MDM.cpp
- Revision:
- 109:327d209a8ab9
- Parent:
- 108:254bf037f83f
- Parent:
- 107:436ee320efd6
- Child:
- 112:89b5b21db71e
--- a/MDM.cpp Mon Sep 15 11:51:49 2014 +0000 +++ b/MDM.cpp Mon Sep 15 11:54:17 2014 +0000 @@ -945,8 +945,8 @@ { bool ok = false; LOCK(); - TRACE("socketIsConnected(%d)\r\n", socket); ok = ISSOCKET(socket) && _sockets[socket].connected; + TRACE("socketIsConnected(%d) %s\r\n", socket, ok?"yes":"no"); UNLOCK(); return ok; } @@ -1122,9 +1122,12 @@ } } UNLOCK(); - if (!ok) + if (!ok) { + TRACE("socketRecv: ERROR\r\n"); return SOCKET_ERROR; + } } + TRACE("socketRecv: %d \"%*s\"\r\n", cnt, cnt, buf-cnt); return cnt; } @@ -1182,11 +1185,14 @@ } } UNLOCK(); - if (!ok) + if (!ok) { + TRACE("socketRecv: ERROR\r\n"); return SOCKET_ERROR; + } } timer.stop(); timer.reset(); + TRACE("socketRecv: %d \"%*s\"\r\n", cnt, cnt, buf-cnt); return cnt; }