[Qt-interest] How to change QUdpSocket peer port
Laurent Astart
laurent.astart at gmail.com
Tue Jan 10 11:00:55 CET 2012
2012/1/10 Laurent Astart <laurent.astart at gmail.com>
> 2012/1/9 Konrad Rosenbaum <konrad at silmor.de>
>
>> ...
>
> If you use the writeDatagram methods to send UDP
>> packets you can chose a differnt target and port for each packet.
>>
>
> It forbids the use of read() and write(), but it could do the trick.
> Thanks for your answer.
>
> Konrad
>>
>
> Laurent
>
I just tried to simply replace my read() and write(), but it doesn't work.
In fact, I'm also using the readyRead() signal, which don't seem to be sent
if data is coming from the wrong port. So, I really have to change the peer
port.
Thanks for your help.
Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20120110/c384fdad/attachment.html
More information about the Qt-interest-old
mailing list