[Interest] Simple UDP listener question

Rainer Wiesenfarth Rainer_Wiesenfarth at trimble.com
Tue Jun 24 12:12:24 CEST 2014


Am 24.06.2014 10:38, schrieb Robert Wood:
> Yes, Bob, that's exactly it.
>
> On 192.168.0.18 I have stripped it right down to this this:
>
>
>       udpSocRec = new QUdpSocket(this);
>       udpSocRec->bind(QHostAddress::Any, 6454);
>
> connect(udpSocRec, SIGNAL(readyRead()),this,
> SLOT(processPendingDatagrams()));
>
> processPendingDatagrams() never gets called, even when Wireshark on
> 192.168.0.18 shows this message:
>
>
> 246843	367.240816000	192.168.0.19	192.168.0.18	ARTNET	60	ArtPoll (0x2000)
>
> When I get my laptop which is on 192.168.0.19 to send a packet out.
>
> Wireshark also tells me this packet is:
>
> User Datagram Protocol, Src Port: 6454 (6454), Dst Port: 6454 (6454)

What does "netstat -an" say when your UDP listener is running? You 
should find your app as "UDP 0.0.0.0:6454" for IPv4 and/or as "UDP 
[::]:6454" for IPv6.

Best Regards / Mit freundlichen Grüßen
Rainer Wiesenfarth

-- 
Software Engineer | Trimble Imaging Division
Rotebühlstraße 81 | 70178 Stuttgart | Germany
Office +49 711 22881 0 | Fax +49 711 22881 11
http://www.trimble.com/imaging/ | http://www.inpho.de/

Trimble Germany GmbH, Am Prime Parc 11, 65479 Raunheim
Eingetragen beim Amtsgericht Darmstadt unter HRB 83893,
Geschäftsführer: Dr. Frank Heimberg, Hans-Jürgen Gebauer

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4282 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140624/3f86e12b/attachment.bin>


More information about the Interest mailing list