version_2.0
Dependents: cc3000_ping_demo_try_2
Fork of cc3000_hostdriver_mbedsocket by
Diff: Socket/UDPSocket.cpp
- Revision:
- 10:7069c5f1e6f4
- Parent:
- 5:245ac5b73132
- Child:
- 11:5e3771b29385
diff -r 4d12b82bc767 -r 7069c5f1e6f4 Socket/UDPSocket.cpp --- 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)); }