The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: RE: xPLMediaNet Web Interface Issue


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

Re: xplSettings





--- In ukha_xpl@xxxxxxx, "John B" <home-automation@j...>
wrote:
> ---- Original Message ----
> From: Tom Van den Panhuyzen <tomvdp@g...>
> Sent: Wed, 8 Dec 2004 19:39:16 +0100
> To: ukha_xpl@xxxxxxx
>
> >
> > Hi Mal,
> >
> > On Wed, 8 Dec 2004 17:08:19 -0000, Mal Lansell
<mlansell@f...>
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.
>
> There are a couple of reasons for this:
>
> 1. If you have no network interfaces in your PC at all (e.g. you
use dial-up or something) and your only IP interface is the loopback
one, then broadcasting to 255.255.255.255 doesn't work, so you need
to broadcast to 127.0.0.1.
>

Now there's something I didn't know.  Looks like the W800 service is
going to need another update!

> 2. If you have several networks on your PC that use different
subnets, you may wish to broadcast to a limited address, e.g.
192.168.1.255, rather than to all subnets as would otherwise be the
case if you were using 255.255.255.255.
>

Fair enough.

> > > 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?
>
> Yes, it's a comma-separated list, and yes, I do intend to refine
the UI to make it more user-friendly.

snip

> > > 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
>
> This seems to work fine for me.
>

Ah, so ListenOn represents that IP.  Makes sense now.

Cheers

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.