The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: xPL Lib - updates


  • Subject: Re: xPL Lib - updates
  • From: "Mal Lansell" <mlansell@xxxxxxxxxxxxxx>
  • Date: Sat, 13 Nov 2004 21:19:06 -0000



--- In ukha_xpl@xxxxxxx, "John B" <home-automation@j...>
wrote:
> > When I did my C++ code, it wouldn't work unless I used
INADDR_ANY,
> > rather than the local IP.
>
> OK, maybe the only solution here is to bind to all addresses, but
filter the packets based on their source address?
> That way we can ignore anything not originating from the local hub.
>
> Any thoughts?
>
> Regards,
>
> John

So recvfrom instead of recv.  I guess that would work - allow the
loopback and local IP addresses by default, and let the user modify
the list.

Now I have to go back and read the thread again because I've
forgotten what the original problem was! ;-)

Mal







xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.