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: Mal Lansell <mlansell@xxxxxxxxxxxxxx>
  • Date: Wed, 01 Sep 2004 10:36:13 +0100
  • References: <FRNT7533BF2FF1@frontier.co.uk>

Tony Tofts wrote:

>>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
>
>

Well I made those changes - it certainly makes the code a lot simpler
just waiting on recv() instead of having to mess around listening for
and accepting and managing the connections.

Unfortunately I still don't receive anything back from the hub.  The
xplMonitor confirms that the hub has sent  it, and the port number and
ip address are the same as the ones I gave it in the config.app.  I must
be missing some setting or other in my receiving socket - but I have no
idea what.  This could take a while... :-(

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.