[Interest] Simple UDP listener question
Robert Wood
robert.wood at apostrophe.co.uk
Tue Jun 24 10:38:22 CEST 2014
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)
I've tried changing the port to 123 to capture incoming NTP packets
which, again, Wireshark says are present, but to no avail.
Thanks,
Rob
On 23/06/14 23:45, Bob Hood wrote:
> On 6/23/2014 4:27 PM, Robert Wood wrote:
>> It can't be a randomly allocated port though, it has to be port 6454.
>
> I realize I've come into this conversation late, but something like:
>
> receive_socket = new QUdpSocket(this);
> receive_socket->bind(QHostAddress::Any, 6454);
>
> wouldn't work for you?
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
More information about the Interest
mailing list