[En-Nut-Discussion] Generating socket events

Ole Reinhardt ole.reinhardt at kernelconcepts.de
Fri Oct 29 12:05:48 CEST 2004


Hello,

> to send a lot of data over a slow link (e.g. ppp) - does NutTcpSEnd block
> until it has sent a packet or something?

This should be easy too. You only need to create an extra buffer you
will write in. Now your control thread could send data (blocking) and
create an event if there is again space in your buffer. So it would not
matter to use a blocking send function because this is done in your
control thread. Your FTP application will receive the empty event if the
control thread has consumed enough data out of your buffer.

Hops this will help,

Ole


-- 
kernel concepts    Tel: +49-271-771091-14
Dreisbachstr. 24   Fax: +49-271-771091-19
D-57250 Netphen    E+ : +49-177-7420433
--





More information about the En-Nut-Discussion mailing list