CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: multithreading

  1. #1
    Join Date
    Jan 2005
    Posts
    17

    multithreading

    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

  2. #2
    Join Date
    May 2003
    Location
    Islamabad, Pakistan
    Posts
    284

    Re: multithreading

    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
    Last edited by jawadhashmi; March 16th, 2005 at 07:55 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured