[Interest] Simple UDP listener question
md at rpzdesign.com
md at rpzdesign.com
Mon Jun 23 20:04:04 CEST 2014
Maybe you should only use 1 socket instead of 2.
UDP only needs to bind to receive, but can send without binding as long
as you use sendto( ) calls.
On 6/23/2014 1:45 PM, Ian Monroe wrote:
> On Mon, Jun 23, 2014 at 10:41 AM, Robert Wood
> <robert.wood at apostrophe.co.uk> wrote:
>> The QHostAddress("192.168.0.18") should be the IP address of my computer
>> shouldn't it? I'm not really clear why this is necessary as I would
>> assume Qt would automatically pick that up? Or is it in case you have
>> more than one NIC and you are telling the program which one to listen
>> on/send from?
>
> You could bind to 0.0.0.0 instead I think.
>
> Ian
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
More information about the Interest
mailing list