Results 1 to 20 of 21

Thread: TCPSocket/Server

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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)

  3. #2
    Join Date
    May 2007
    Posts
    90
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    40

    Talking Re: TCPSocket/Server

    Your code worked for me as well. I am still not sure what the issue was, but I was able to integrate your code into mine to get the app working.

    Thank you very much for all your help.

  4. #3
    Join Date
    Aug 2009
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    3

    Default Re: TCPSocket/Server

    hi guys

    i try to run the example client-server to understand how send file but not work..
    i take this warning " unused variable sent’"
    i change the path of file name.

    i use ubuntu 9.

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.