Results 1 to 2 of 2

Thread: connectToHost() to receive broadcast udp datagram

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    3
    Thanked 453 Times in 435 Posts
    Wiki edits
    15

    Default Re: connectToHost() to receive broadcast udp datagram

    UDP is normally used is connection-less mode, so connectToHost() is not required, unless you are doing something special.

    If you are sure you want to connect, specify a specific remote host name / remote ip address you want to connect. QHostAddress::Any is not an appropriate argument to connectToHost().
    Last edited by Santosh Reddy; 21st March 2017 at 08:51.
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

Similar Threads

  1. Replies: 1
    Last Post: 11th March 2016, 03:16
  2. QUdpsocket send and receive broadcast in linux
    By danics in forum Qt Programming
    Replies: 5
    Last Post: 4th February 2015, 12:26
  3. Reading last datagram in UDP network
    By euch in forum Qt Programming
    Replies: 5
    Last Post: 6th December 2010, 00:21
  4. Reading TCP datagram header by Qt
    By Kill3rReaper in forum Qt Programming
    Replies: 11
    Last Post: 8th June 2010, 13:49
  5. UDP datagram receive
    By mdannenb in forum Qt Programming
    Replies: 8
    Last Post: 27th July 2008, 04:30

Tags for this Thread

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.