Ethernet
Ethernet copied to clipboard
socketSendAvailable() returns 0 when socket is closed
Recommend changing return type from uint16_t to int and adding code to detect socket states that preclude successful writes and report with them a negative return value so they can be differentiated from a full TX buffer.