cc3000 hostdriver with the mbed socket interface
Fork of cc3000_hostdriver_mbedsocket by
Diff: Socket/TCPSocketServer.cpp
- Revision:
- 48:192e2fde71e9
- Parent:
- 29:c40918cd9b6d
diff -r a63fe1a4f568 -r 192e2fde71e9 Socket/TCPSocketServer.cpp --- a/Socket/TCPSocketServer.cpp Tue Jan 20 09:04:49 2015 +0000 +++ b/Socket/TCPSocketServer.cpp Sat Feb 28 16:40:39 2015 +0000 @@ -73,7 +73,7 @@ socklen_t newSockRemoteHostLen = sizeof(connection._remote_host); int fd = _cc3000_module->_socket.accept(_sock_fd, (sockaddr *) &connection._remote_host, &newSockRemoteHostLen); if (fd < 0) { - return -1; + return fd; } /* s_addr is returned in the little endian */ connection._remote_host.sin_addr.s_addr = htonl(connection._remote_host.sin_addr.s_addr);