From f9dea9d35b8337a9f24930698facf5b277226245 Mon Sep 17 00:00:00 2001 From: kieranm Date: Tue, 9 Mar 2004 15:55:37 +0000 Subject: [PATCH] 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. --- src/core/tcp_out.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/core/tcp_out.c b/src/core/tcp_out.c index a7cdc6be..d2964662 100644 --- a/src/core/tcp_out.c +++ b/src/core/tcp_out.c @@ -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 tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t copy) {