Kieran Mansley - kieranm@gtemail.net - 9th Mar 2004

- Added comment to tcp_write() to remind of the importance of call to
   tcp_output() to send any enqueued data.
This commit is contained in:
kieranm 2004-03-09 15:55:37 +00:00
parent 4ea55b1bbc
commit f9dea9d35b

View File

@ -72,6 +72,14 @@ tcp_send_ctrl(struct tcp_pcb *pcb, u8_t flags)
} }
/*
* NB. tcp_write() enqueues data for sending, but does not send it
* straight away. It waits in the expectation of more data being sent
* soon (as it can send them more efficiently by combining them
* together). To prompt the system to send data now, call
* tcp_output() after calling tcp_write().
*/
err_t err_t
tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t copy) tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t copy)
{ {