update main WIZnetInterface library for supporting honeypot server
Fork of WIZnetInterface by
Update WIZnetInterface for supporting Honeypot server
Update sockets handling.
//add new type to enum status SOCK_TIMEOUT = 0x23,
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 30:58f7cd21cf37
- Parent:
- 0:6f28332c466f
--- a/Socket/TCPSocketConnection.cpp Tue Nov 17 06:35:55 2015 +0000 +++ b/Socket/TCPSocketConnection.cpp Fri Sep 01 23:36:01 2017 +0000 @@ -80,6 +80,8 @@ if(_sock_fd<0) return -1; + //printf("writtenLen: %i length: %i\n\r", writtenLen, length); + while (writtenLen < length) { if(!(eth->is_connected(_sock_fd))) @@ -92,6 +94,9 @@ if (size > (length-writtenLen)) { size = (length-writtenLen); } + + //printf("Size: %i \n\r", size); + int ret = eth->send(_sock_fd, data + writtenLen, size); if (ret < 0) { return -1;