[Qt-interest] QUdpSocket's writeDatagram source port
Valentin Iliu
valentiniliu at yahoo.com
Wed Oct 28 10:51:06 CET 2009
no.
it returns 0, while the packet is written from 2718, according to wireshark
--- On Tue, 10/27/09, Markus Goetz <Markus.Goetz at nokia.com> wrote:
From: Markus Goetz <Markus.Goetz at nokia.com>
Subject: Re: [Qt-interest] QUdpSocket's writeDatagram source port
To: "ext Valentin Iliu" <valentiniliu at yahoo.com>
Cc: "qt-interest at trolltech.com" <qt-interest at trolltech.com>
Date: Tuesday, October 27, 2009, 11:22 AM
ext Valentin Iliu wrote:
> Hello everyone.
>
> I need to find a way to detect what source port is writeDatagram using when it runs, so I can bind to that port and listen for responses to what writeDatagram is sending out.
>
> I notice it would usually pick 5060, but if it cannot use that one, it picks some different port in what looks to me like random fashion.
>
> It seems like Wireshark knows both the source and the destination port of a packet. Which means it's not impossible to detect that source port. How do I do that in Qt?
>
> Thanks!
>
>
Does http://doc.trolltech.com/4.5/qabstractsocket.html#localPort return the correct port?
Markus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091028/dd4bc3c3/attachment.html
More information about the Qt-interest-old
mailing list