Results 1 to 3 of 3

Thread: QUdpSocket bind / connectToHost ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2007
    Posts
    28
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default QUdpSocket bind / connectToHost ?

    Hi everyone,

    I'm asking a basic question about what is the difference, when we use bind / connectToHost on QUdpSocket.

    The manual says I could use read & write function after connectToHost, no difference than QTcpSocket.

    But when I experimenting with it, on one application I experienced an anomaly,
    which is I don't receive readyRead() signal when data arrives at the network.
    On another application, I use connectToHost, read & write with no problems.

    I'm not sure what is the problem, since I call connectToHost & waitForConnected in both applications.

    Additionally, I can use QUdpSocket bind, readDatagram & writeDatagram with no problems

    So what causes this, and what are exactly the differences, advantages / disadvantages between these approach in using QUdpSocket ?

    Help please
    Last edited by mnemonic_fx; 27th June 2007 at 01:49. Reason: typos

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.