I have looked at your documentation about QUdpSocket as well as your code snippet.
According to the snippet, once I call bind() and connect readRead() I should be able to receive datagrams.
I have written a test program which attempts to do this. I can only get a response if I call connectToHost(). Your documentation says that I shouldn't do this. When I apply connectToHost() and disconnectFromHost() repititively, I get a memory leak.
So why does connectToHost() work and bind() doesn't work. I am working with v4.5 on Windows XP.
Thanks,
bhuff


Reply With Quote


Oh, and bind() is not used to switch anything, until you don't bind your socket, you won't be able to do pretty much anything with the socket and I think once a socket is bound, it can't be rebound to another address - you'd have to close the socket and bind it again (or even create a new one first).
Bookmarks