Results 1 to 2 of 2

Thread: TQ Socket Programming

  1. #1
    Join Date
    Aug 2012
    Posts
    4
    Qt products
    Qt3 Qt4

    Default TQ Socket Programming

    i am receiving large structure in a QT server programme from non-qt client. But it receives only 50176 bytes out of 130024 bytes sent from client. i am using qsocket.read() at qt server. i had tried sending of the struct in slices of 1460 bytes and same size i am receiving at my QT programme. The size of receiving buffer is more than 130024 bytes.
    Please help me to resolve this problem.
    thanks..

  2. #2
    Join Date
    Oct 2009
    Posts
    483
    Thanked 97 Times in 94 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: TQ Socket Programming

    Without any specific information or code we can only try to guess what is wrong. Besides there is no such thing as "qsocket.read()".

    My guess is that you assume that sending a block of n bytes over TCP will result in a single reception of a block of n bytes on the other side. This is not how TCP works.

Similar Threads

  1. Socket programming
    By isharasjc in forum General Discussion
    Replies: 5
    Last Post: 21st March 2012, 09:03
  2. socket programming
    By Arpitgarg in forum Newbie
    Replies: 13
    Last Post: 21st April 2011, 09:25
  3. Socket programming, please help me!
    By nthung in forum Qt Programming
    Replies: 21
    Last Post: 26th May 2010, 23:01
  4. Can any One help me? - Socket Programming?
    By vinod in forum Qt Programming
    Replies: 6
    Last Post: 18th November 2009, 09:46
  5. Network Socket Programming
    By Walsi in forum Newbie
    Replies: 4
    Last Post: 19th June 2007, 10:04

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.