lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] How to send data at a defined time?


From: Sergio R. Caprile
Subject: Re: [lwip-users] How to send data at a defined time?
Date: Fri, 03 Jul 2015 09:28:38 -0300
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

Martin H.,
First of all, what are you using ? Do you have an RTOS or are you
running on bare metal with NO_SYS=1 ?
Second, are you using the RAW API or what ?
Then, how exact needs this "defined time" to be ? You can call a send
function whenever you want, lwIP (at least the RAW API) is event driven,
so you can send UDP by just calling the send function when needed. TCP
is a bit more complicated because it is... well, it is TCP.
Basically, you can send as much data at once as your buffers allow.
What is "lwIP context" for you ? Are you programming in C or what ?
Since there is no udp_sent() callback, I have to guess you are using
TCP... then, once the connection is established and flow is steady, the
amount of time until the sent callback is called is what it takes for
the receiving host to send you an ACK, cause that is how TCP works.
-- 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]