Results 1 to 20 of 21

Thread: TCPSocket/Server

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #19
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 541 Times in 521 Posts

    Default Re: TCPSocket/Server

    Well, I couldn't find anything.
    I modified the samples and attached them. Here the server sends the file. I used an 8.42mb file and a 15.6mb one, and I couldn't reproduce the problem.

    You can test on your side.
    The send/receive methods are similar to yours. I also used QDataStream's.

    Everything happens in Client::readFortune(receive file) and in FortuneThread::run( sends the file).

    The file name is hardcoded, so you might want to modify that.

    Regards
    Attached Files Attached Files

  2. The following 3 users say thank you to marcel for this useful post:

    BeakerBob (29th September 2008), njuFerret (12th March 2011), TheGrimace (13th August 2007)

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.