[Interest] QUdpSocket
Konrad Rosenbaum
konrad at silmor.de
Wed Feb 28 15:56:02 CET 2018
Hi,
On Wed, February 28, 2018 14:16, Igor Mironchik wrote:
> On 28.02.2018 15:49, Konrad Rosenbaum wrote:
>> Your above code means that the socket will listen on somePort of every
>> open interface and may share this with other programs listening on the
>> same port.
>>
>> I hope you are checking the return code of bind! If this is false then
>> the
>> socket is left in an undefined state. In this state you will not receive
>> any data (or be able to send anything) - you may or may not get errors
>> when you try.
>
> Sure, I check codes. My IPC works. I just want to know should I care
> about something with UDP or I can just do bind() and process pending
> datagrams, and don't worry about something additional in my code?! Thanks.
I'm not sure what exactly your question is. So I'll continue to guess...
After a successful bind your UDP socket is ready to communicate - you can
receive and send packets, no need for any other initialization calls.
Konrad
More information about the Interest
mailing list