cc3000 driver with expanded buffers.
Fork of cc3000_hostdriver_mbedsocket by
Revision 10:7069c5f1e6f4, committed 2013-10-01
- Comitter:
- Kojto
- Date:
- Tue Oct 01 04:41:47 2013 +0000
- Parent:
- 9:4d12b82bc767
- Child:
- 11:5e3771b29385
- Commit message:
- sendTo (select commented out)
Changed in this revision
| Socket/UDPSocket.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Socket/UDPSocket.cpp Tue Oct 01 04:31:56 2013 +0000
+++ b/Socket/UDPSocket.cpp Tue Oct 01 04:41:47 2013 +0000
@@ -59,15 +59,15 @@
return -1;
}
- if (!_blocking) {
- TimeInterval timeout(_timeout);
- if (wait_writable(timeout) != 0) {
-#if (CC3000_DEBUG == 1)
- printf("DEBUG: The socket is not writeable. _sock_fd: %d.\n", _sock_fd);
-#endif
- return 0;
- }
- }
+// if (!_blocking) {
+// TimeInterval timeout(_timeout);
+// if (wait_writable(timeout) != 0) {
+//#if (CC3000_DEBUG == 1)
+// printf("DEBUG: The socket is not writeable. _sock_fd: %d.\n", _sock_fd);
+//#endif
+// return 0;
+// }
+// }
return _cc3000_module->_socket.sendto(_sock_fd, packet, length, 0, (sockaddr *)&remote._remote_host, sizeof(sockaddr));
}
