Re: Feature request

Rajko Albrecht <[email protected]>
Newsgroups gmane.mail.libetpan.user
Message-ID <[email protected]>
Am Freitag, 19. März 2004 00:06 schrieb DINH Viet Hoa:
> I wait until the user finish his connection, then I just ignore the
> response. If threads are allowed on PDA, maybe you should do that (this
> will of course introduce other problems such as concurrency).
Oh. Threading is a real hot thing on pdas. And due the widget framework (in 
that case QT/Embedded) it may be get a lot of troubles with threading in 
libraries.

> If you really want to break the connection because you don't want to
I didn't mean break the connection, but breaking the current read operations 
or such. Hm. 

May be, that for some things I'll find another solution, eg getting header 
lines for each single message (when I find the trick getting a listing step 
by step) or such. but when downloading large bodies there should be a trick 
to cancel this operation without breaking the connection.

Why such a callback as described would be nice too:
When it called once a second for instance, I can at this point make the GUI 
living. Means, when there is a long staying operation the applications seems 
to hang. And on pop3 and nntp accounts the progress callback seems not to be 
called :(

but with that call back called every second inside the receiving loop of etpan 
I can make a short "The software is always living call" inside my app :)

> progress callback is an out of date API but this should still work
> with many things. Then, you won't find any way to do this using
> storage interface. You have to access by hand the low-level interface.

Well, I made a 

        mailsession * session = m_pop3->sto_session;
        mailpop3 * mail =  ( (  pop3_session_state_data 
* )session->sess_data )->pop3_session;
        if (mail) {
            mail->pop3_progr_fun = &pop3_progress;
        }

but never see that this fun is called :( in imap and smtp it is called and 
helps a lot not to freeze the app on large operations, but not on nntp and 
pop3 :( thats why it would be realy great to have such a callback as 
described above.

Ciao

alwin
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQBAWkJN0VuVzTyUKwoRAoFkAKDTrhG8tCQCnukoFvHrTfcMCa9NJgCg1noO
Y4aOgbslCEmwu9Q1z/kIvxg=
=AGHV
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.