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: Communicatiing with xplHal


  • Subject: RE: Communicatiing with xplHal
  • From: "Tony Tofts" <tony@xxxxxxxxxx>
  • Date: Tue, 31 Aug 2004 13:32:06 +0100

> I take it the use of
> broadcast is so I don't need to know the IP of the hub?

Yes, the sent message needs to go to every hub on every pc on the network,
and also to all xpl enabled hardware etc.

> 1) I should change my code to just use sendto (rather than
> connect/send), and set the address to broadcast.

Yep, that's the one

> 2) On the receiving side, I should bind a socket to the local
> address and port 50000+, call recv and just wait for data
> from the hub (rather than listen/accept).

Yep, that's it

> Hopefully this will work.

Should do.

Regards
Tony




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.