[Qt-interest] QUdpSocket's writeDatagram source port

Thiago Macieira thiago at kde.org
Wed Oct 28 12:08:19 CET 2009


Em Quarta-feira 28 Outubro 2009, às 10:51:06, Valentin Iliu escreveu:
> no.
> it returns 0, while the packet is written from 2718, according to wireshark

I believe you need to send one packet first, before localPort is set to 
anything.

0 means "dear Operating System, please choose a port for me"

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091028/e3bae8ce/attachment.bin 


More information about the Qt-interest-old mailing list