[Qt-interest] How to change QUdpSocket peer port

Konrad Rosenbaum konrad at silmor.de
Mon Jan 9 20:49:55 CET 2012


Hi,

On Monday 09 January 2012, Laurent Astart wrote:
> I'm searching for a way to change the peer port of a QUdpSocket, without
> loosing my local port (that is no disconnection / reconnection).

UDP has no connections. If you use the writeDatagram methods to send UDP 
packets you can chose a differnt target and port for each packet.



	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/20120109/25084cb8/attachment.bin 


More information about the Qt-interest-old mailing list