Results 1 to 10 of 10

Thread: sending structure through udp socket programming

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 334 Times in 317 Posts

    Default Re: sending structure through udp socket programming

    XML will be a easy way I guess.
    However you may also look at using QDataStream. You can stream your class through it and read back. Read the documentation to get an idea

  2. #2
    Join Date
    May 2009
    Posts
    61
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    5
    Thanked 6 Times in 6 Posts

    Default Re: sending structure through udp socket programming

    Mmmh... in this context: when I use QDatastream and sockets (maybe especially UDP sockets) do I have to deal with timeouts, broken telegrams and things like that? Even with XML and plain text via QCtpSocket, I currently use BOT/EOT bytes, timeouts and 1024k reading buffers to assure that nothing is lost. Is that ok or paranoia? Especially on Windows CE systems, I heard there may could be trouble?

Similar Threads

  1. Can any One help me? - Socket Programming?
    By vinod in forum Qt Programming
    Replies: 6
    Last Post: 18th November 2009, 10:46
  2. Very strange socket programming problem
    By montylee in forum Qt Programming
    Replies: 5
    Last Post: 11th November 2008, 13:05
  3. sending int array through socket
    By babu198649 in forum Qt Programming
    Replies: 5
    Last Post: 20th December 2007, 09:16
  4. Socket Programming Port53 QTcpSocket/QUdpSocket
    By patrik08 in forum General Programming
    Replies: 5
    Last Post: 10th May 2007, 17:59
  5. qt network performance
    By criss in forum Qt Programming
    Replies: 16
    Last Post: 24th July 2006, 10:23

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.