Results 1 to 6 of 6

Thread: how to send file with qt c++?

  1. #1
    Join Date
    Feb 2007
    Posts
    16
    Thanks
    9

    Default how to send file with qt c++?

    i would like to make a program which able to send file over internet like skype does.
    i dont know how to divide a big file to small packet and do crc checking also.
    pls post any related source code or link to me.
    thx a lot.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to send file with qt c++?

    Any details? What protocol?

  3. The following user says thank you to wysota for this useful post:

    wei243 (27th February 2007)

  4. #3
    Join Date
    Feb 2007
    Posts
    16
    Thanks
    9

    Default Re: how to send file with qt c++?

    the file can be any picture, text file ect...
    protocol = tcpip

    sry i dont understand wat ur detail means by.....

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to send file with qt c++?

    Take a look at Fortune Server and Fortune Client examples that come with Qt. I think they have what you need.

  6. The following user says thank you to wysota for this useful post:

    wei243 (3rd March 2007)

  7. #5
    Join Date
    Feb 2007
    Posts
    16
    Thanks
    9

    Default Re: how to send file with qt c++?

    thx a lot wysota,
    now i manage to send a small text file with tcpip, but i still face some problem....
    1. if the file is quite big, how to divide it to smaller packet in sender program?
    2. how to do crc checking?

  8. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: how to send file with qt c++?

    Quote Originally Posted by wei243 View Post
    1. if the file is quite big, how to divide it to smaller packet in sender program?
    2. how to do crc checking?
    TCP/IP wil do both things for you. Just write your file to the socket and read it on the other end.

  9. The following user says thank you to wysota for this useful post:

    wei243 (4th March 2007)

Similar Threads

  1. Draging a non-existing file to the Windows Desktop
    By klaus1111 in forum Qt Programming
    Replies: 13
    Last Post: 20th September 2007, 11:47
  2. Qt 3.3.4 -> Qt 4.1.2, moc file issue
    By philski in forum Qt Tools
    Replies: 1
    Last Post: 11th September 2006, 21:08
  3. SQLite-DB in a qrc file
    By Lykurg in forum Qt Programming
    Replies: 5
    Last Post: 31st July 2006, 19:24
  4. QHttp GET File & Password
    By patrik08 in forum Qt Programming
    Replies: 4
    Last Post: 11th June 2006, 13:04
  5. Accessing DTD in an XML file via QtXml module?
    By jorma in forum Qt Programming
    Replies: 1
    Last Post: 6th May 2006, 18:09

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.