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: xPLLib v3.0 Public Beta




> > > - checks incoming msgs to be valid xpl msgs
> > > - if it receives a HBEAT from a local IP, then stores the
port nr in
> > > the clients list
> > > - broadcasts incoming msgs to all clients on the list
> >
> > Should it also look at the target field, and filter based on
that?
>
> No, this is handled in xpl lib based on filters.  Every xpl app
> receives all messages and then decides what to do with it.

This is correct. The idea is that any xPL app/device on the network should
be able to listen in to all other traffic.
E.g. a monitor, state cache, etc.

> > > It doesn't send HBEAT items itself or doesn't listen to
config items for
> > itself.
> > >
> >
> > It could though, couldn't it?  Then the allowable IPs could be
configured
> > via xPLHal.
>
> What you propose is exactly the route I had implemented and later
> aborted again.  (use config items that can be set with HAL).
> But the configurations are a pc-wide setting, not for the hub alone.
> If you want your hub to listen on a specific IP, this same setting
> should be used for the other xpl apps.  Same for accepting packets.
> It doesn't make sense to let the hub listen on a specific address and
> maybe accept packages from specific addresses while at the same time
> on another port there are apps listening on all ip addresses and
> accepting anything.

I agree with Tom here - I don't like the idea of configuring things like
broadcast address, listening IPs etc. via xPLHal.
To me they are core elements of an application, and as Tom says, they are
global to the machine.

> I think John plans/has a tool to set these configuration elements in
> the registry.  Logically they belong next to
"BroadcastAddress" which
> is already configurable via the registry.

First beta version available here:
http://www.xpl.myby.co.uk/downloads/utils/xplsettings.zip
(it's written in pure C++, so doesn't need .NET or anything to work)
It will ship as part of the next release of xPLHal Manager.

Regards,

John




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.