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: xplSettings




Hi Mal,

On Wed, 8 Dec 2004 17:08:19 -0000, Mal Lansell <mlansell@xxxxxxx>
wrote:
> I'm refining my C++ lib at the moment, and want to include the support
for
> multiple network cards and IP filtering that's been discussed
recently.
>
> I took a look at the xplSettings app, and have some questions:
>
> 1) Why is there a configurable broadcast address?  I though the
broadcast
> address was always 255.255.255.255

There must have been a demand for this, because it was already present
in the xplhub for .net V2.5.  Probably John can answer this.


> 2) How are multiple listen-to addresses set?  Is it a comma separated
list?
> I presume this will eventually be a more sophisticated type of GUI to
> prevent format errors?
>
> 3) What is the third item for (to me the description means the same
thing as
> item two)

I don't have nor could find "xplSettings" but I guess your
talking
about ListenOn and ListenTo addresses.
ListenTo restricts which source IPs the app should accept packets from.
ListenOn is the IP address the app should listen on for incoming traffic.

ListenOn and ListenTo are configurable via registry settings in
[HKLM]/Software/xPL/ListenOnAddress
[HKLM]/Software/xPL/ListenToAddresses

Possible values are:
ListenOnAddress: "ANY_LOCAL" or a specific IP address.
ListenToAddresses: "ANY", "ANY_LOCAL"  or a list of
specific
comma-separated IP addresses.


> 4) Don't we also need an option for specifying which local IP to use
in
> heartbeat messages?

This is how I have currently implemented it:

if (ListenOn = ANY_LOCAL) or (ListenOn is not a local IP)
then take the first local IP (but not the loopback)
else
take the ListenOn address


> 5) Have we agreed that the default is to listen to messages on all
IPs, as
> we do now?

That is how I understood it...


> Finally, Tom, what is the name of the mutex your V3 hub uses?

The mutex is named "xPLHub".

But before you start implementing this, maybe we should first have a
poll about this "hub in the lib" thing.  (I leave that up to John
who
has taken the lead in this.)

Regards,
Tom



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.