Results 1 to 6 of 6

Thread: FTP Program using multiple Threads

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2009
    Posts
    9
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    1

    Default FTP Program using multiple Threads

    Hello Everyone,

    I am facing a problem in using the QFtp class in QT4.7.0 and my Qt creator is 2.0.1 I am trying to send one file to another machine using QFtp. I am trying this within multipe threads. I have tried in a single thread , then also it is not connecting or sending any file.

    My code is attaching here:

    Qt Code:
    1. mutex->lock();
    2. ftp->connectToHost (route,9012);
    3. ftp->login ("administrator","admin");
    4.  
    5. connect(ftp,SIGNAL(stateChanged(int)),this,SLOT(Status(int)));
    6. connect(ftp,SIGNAL(dataTransferProgress(int,int)),this,SLOT(UpdateProgress(int,int)));
    7. ftp->put( filetrans,aliasname);
    8. mutex->unlock();
    To copy to clipboard, switch view to plain text mode 

    Please Help me.

    Thanks in advance.
    Last edited by wysota; 3rd December 2010 at 10:48. Reason: missing [code] tags

Similar Threads

  1. Server with multiple clients without threads
    By kernel.roy in forum Newbie
    Replies: 2
    Last Post: 9th September 2010, 05:53
  2. Multiple threads with one QTcpSocket
    By xenome in forum Qt Programming
    Replies: 2
    Last Post: 23rd January 2010, 21:20
  3. Phonon on multiple threads
    By Savignon in forum Qt Programming
    Replies: 5
    Last Post: 6th March 2009, 23:17
  4. Waiting for multiple threads
    By Bebee in forum Qt Programming
    Replies: 1
    Last Post: 18th November 2008, 18:21
  5. Organizing multiple threads
    By vratojr in forum Qt Programming
    Replies: 3
    Last Post: 25th May 2006, 10:53

Tags for this Thread

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.