Free (GPLv2) TCP/IP stack developed by TASS Belgium

Dependents:   lpc1768-picotcp-demo ZeroMQ_PicoTCP_Publisher_demo TCPSocket_HelloWorld_PicoTCP Pico_TCP_UDP_Test ... more

Issue: Inconsistent return value in TCPSocketConnection::receive and ::receive_all (Closed: Fixed)

When no data is present on the receiving socket and those methods are called, the API specifies that -1 shall be returned.

With current implementation, we return 0 there.

2 comments:

18 Jul 2013
25 Jul 2013

Actually viceversa, we were returning -1 upon a timeout, a 0 is logically expected there.

Fixed both send and receive in TCPConnection()