Results 1 to 3 of 3

Thread: Stopping the download process during pop3 session.

  1. #1
    Join Date
    Feb 2010
    Posts
    68
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8

    Default Stopping the download process during pop3 session.

    Hello.

    In my peer2mail client, each file added to download starts a new thread and in this thread it establishes connection with the pop3 server, checks attachments' names using TOP command and then starts to download proper mails using RETR command, one by one. But I want to add an option for an user to stop the downloading process of specific file immediately and remove all the info related to that file from the user interface. I know how to do the interface part but I'm wondering what should I do to stop downloading mails immediately - should i use QUIT command (don't think so, cause it'll probably not work while reading the responce for RETR command)? Or should I call abort() function to disconnect immediately? What do you think?

    Thank you in advance.

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    6
    Thanked 348 Times in 333 Posts

    Default Re: Stopping the download process during pop3 session.

    Yes, I'd close the socket on user abort and let the server detect that. It's not going to respond to a quit command whilst still processing the previous command.

  3. #3
    Join Date
    Feb 2010
    Posts
    68
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8

    Default Re: Stopping the download process during pop3 session.

    What does it mean: "let the server detect that"? I tried to call abort a few days ago but the reason I asked this question is that I was given a thread-related error. I don't remember it precisely so I'll let you know about it when I'll see it again. It seems it's all because of threads... but I don't want to resign from using them now.

Similar Threads

  1. Replies: 3
    Last Post: 9th July 2010, 20:55
  2. Downloading specific mails using POP3 protocol.
    By kremuwa in forum General Programming
    Replies: 1
    Last Post: 22nd May 2010, 10:06
  3. Simply Client E-mail (POP3)
    By Altertwin in forum Qt Programming
    Replies: 5
    Last Post: 25th February 2010, 17:27
  4. Stopping a QThread
    By Gurdt in forum Qt Programming
    Replies: 4
    Last Post: 23rd April 2009, 22:21
  5. Stopping QTimer
    By drinu21 in forum Qt Programming
    Replies: 4
    Last Post: 16th May 2008, 15:59

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.