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: Hub Discussion



> There does exist a race condition though -- if multiple xPL apps are
> starting at the exact same time, in the short time that appA has
> successfully bound itself to port 3865 (i.e. there is no hub running)
and
> before it unbinds it, appB may be doing the same check and find port
3865
> busy and conclude that there is a hub and start up.

This can easily be resolved. Assume there's a hub when you fail to listen
on 3865 *and*
you can send a ping to it that gets a reply.

If two non-hubs start together, the first one may grab the port, but it
will not answer
the ping.

Paul






___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with
voicemail http://uk.messenger.yahoo.com



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.