Click to See Complete Forum and Search --> : multithreading


request
March 16th, 2005, 06:17 AM
Hi
I have written a program which receives mails from server using POP3 in ASP.NET . it's downloading sequentially. now i want to use the multithreading in this regard where i can create threads for each and every mail...and download those mails simultaneously.
if u have any idea please help me out.
Regards
request

jawadhashmi
March 16th, 2005, 06:49 AM
After connecting with the POP3 server the client always asks how many emails are there and the server sends the number of emails and then to retrive these emails the client requests for the 1st mail and retrives it then goes for 2nd one and so on.
If you make multiple connections wiht the server and then i think you will get the same number of emails from the server and to donload that emails you have to follow the above method so i think each client will down load the same data. So there is no need to make multiple connections for same email account.

For detailed info check RFC1939 for POP3