[En-Nut-Discussion] Generating socket events

Ole Reinhardt ole.reinhardt at r-web.de
Fri Oct 29 11:43:57 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

-- 
 _________________________________________________________________
|                                                                 |
| WWW.R-WEB.DE         Systementwicklung, Softwareentwicklung     |
|                                                                 |
| Ole Reinhardt                                                   |
| Luisenstraße 29      Tel. / Fax:        +49 (0)271  7420433     |
| 57076 Siegen         Mobil:             +49 (0)177  7420433     |
| Germany                              ole.reinhardt at r-web.de     |
|_________________________________________________________________|




More information about the En-Nut-Discussion mailing list