This is Library using WIZnet Hardware TCP/IP chip, W5500 and WIZnet TCP/IP Offload Engine, W7500.

Dependents:   HTTP_SDcard_file_server_WIZwiki-W7500 SSD1306_smart_watch TCPEchoServer-WIZwiki-W7500 httpServer-WIZwiki-W7500 ... more

Fork of WIZnetInterface by Soohwan Kim

Issue: TCPSocketConnection::send_all(char* data, int length) bug

if connect is disconnect eth->send(...) will return 0, send_all(...) will loop but not return.

int ret = eth->send(_sock_fd, data + writtenLen, size);

-1 if unsuccessful, else number of bytes written int TCPSocketConnection::send_all(char* data, int length) { int writtenLen = 0;

if(_sock_fd<0) return -1;

while (writtenLen < length) {

if(!(eth->is_connected(_sock_fd))) return -1;

int size = eth->wait_writeable(_sock_fd, _blocking ? -1 : _timeout); if (size < 0) { return -1; } if (size > (length-writtenLen)) { size = (length-writtenLen); } int ret = eth->send(_sock_fd, data + writtenLen, size); if (ret < 0) { return -1; } writtenLen += ret; } return writtenLen; }