This content has been marked as final. Show 2 replies
wiced_tcp_send_buffer() was the precursor for the wiced_tcp_stream API and is currently only used by the http protocol library although its use could be replaced with a wiced_tcp_stream_write + flush. The function still exists to offer a simple method of transmitting a large block of data without worrying about splitting it up into separate packets.
Reception of data, however, does not occur in the same manner and so there is no wiced_tcp_stream_read() function. The TCP socket has either received a packet or it has not. If a packet has been received it needs to be processed and then freed as soon as possible to ensure optimal packet buffer utilization.
What you have suggested is actually implemented in other internal parts of WICED and could be added to the TCP stream API.