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: Re: Duplicated xAP messages


  • Subject: Re: Re: Duplicated xAP messages
  • From: Stuart Booth
  • Date: Sat, 28 Feb 2004 15:19:00 +0000

On Wed, 18 Feb 2004 07:34:19 -0000, "Paul Barrett"
<<a
href="/group/xap_automation/post?postID=Y8S4LJzD2d6MJ0YQQD2MIiiMhw7o7uFIi4Z-VF0bgynpnlGRhDJvEZnkK5T2qu7XNqJU49qb4bX5_-9YPoh4_A8Dqw">pbarrett@r...</a>>
wrote:

>I just tried it out,
>and yes if I enable the two VMWare Ethernet adapters I have on my
machine I
>receive three copies of each message in the viewer. If I disable each
one in
>turn the duplicates decrease at the same rate.
>
>I found that the duplicates are also visible in the xAPConsole.

I just remembered we never resolved this. Looks like we may have a
solution, as James has just tested this out for me. So for anybody who
has noticed this, the following may be of interest.

Patrick suggested a while ago that "if the messages are sent out on
multiple interfaces, then you will see duplicates because a tcp/ip
broadcast cannot be filtered by network interface."

I just checked and sure enough xAPFramework is doing a simple
broadcast to 255.255.255.255, which will likely end up going out to
all interfaces.

So. There are a couple of things you can try to see if this helps the
problem. I built these into xFx yonks ago (ie when I started writing
it) but have never ever used them myself! If I need any further
optional configuration beyond these settings, I'll probably have to
add it in to future releases.

Taking Viewer as an example, although *ANY* xFx-based application will
accept these, edit the app's .config file and in the appSettings
section add:

<add key="xAPBroadcastIP" value="<your IP address
here>" />
<add key="xAPListeningIP" value="<your IP address
here>" />

And replace <your IP address here> with the IP address you want to
send and receive on, e.g:

<add key="xAPBroadcastIP" value="192.168.1.11" />
<add key="xAPListeningIP" value="192.168.1.11" />

This should resolve the problem of 'echoes' where multiple network
interfaces are present by specifying exactly which one you want to
use.

S
--
Stuart Booth <<a
href="/group/xap_automation/post?postID=Q8KaXw2Q4HEVakRKpNSbymGbO0_mChDrFhbI3XueDtxcpi6_ywlDW3QUNQ2zOY3atqfpA1X33y2PtQLtFTMpUiA">stuart@x...</a>>
xAPFramework.net - a xAP software development framework for .net

<a href="http://www.xapautomation.org/";>http://www.xapautomation.org/</a>
<a href="http://www.xapframework.net/";>http://www.xapframework.net/</a>





xAP_Automation Main Index | xAP_Automation Thread Index | xAP_Automation 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.