I am developing an application that has to run on ubuntu 14.04, that bundles qt 5.2.1.
I use QUdpSocket as QIODevice, so I first bind to a port where my server accept datagrams, then I call connectToHost().
Unfortunately I have to face with [QTBUG-26538] QUdpSocket: connectToHost() resets local port number specified by bind()
There is some workoaround?
Asked
Active
Viewed 50 times
0

mastupristi
- 1,240
- 1
- 13
- 29
-
What if "87.250.251.3:20000"? – Alexander V Mar 12 '17 at 22:48
-
@AlexanderVX I have to bind a predefined local port. What you suggest is done by connectToHost() – mastupristi Mar 13 '17 at 20:51
-
I meant string parameter. – Alexander V Mar 13 '17 at 22:02