mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-09 17:13:49 +08:00
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:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user