[Qt-interest] How to change QUdpSocket peer port

Konrad Rosenbaum konrad at silmor.de
Tue Jan 10 16:08:53 CET 2012


On Tuesday 10 January 2012 11:00:55 Laurent Astart wrote:
> 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.

strange I'm successfully using readDatagram together with readyRead. But then 
again, I did not lock my UDP socket to a specific peer - it might discard 
packets that do not match.


	Konrad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20120110/9c732f14/attachment.bin 


More information about the Qt-interest-old mailing list