On 01/27/2005 05:24 PM, Asciimonster wrote:

David George wrote:

I thought about adding a thread to the backend to do this, but figured it would be better to have a separate processes that asks the backend for the info. First by doing it this way we can have multiple LED boxes (one for each frontend). Also I wanted to have the ability for the box to detect if the backend is ever unavailable.


I have not a really clear picture about how the front- and backends communicate, but if we use the TCP/IP connection the backend would have the unavailability option already (asynchronous socket error),

Yep, that is how it detects the backend going away. If we can't connect to the backend we assume it is down. Of course it could be running fine and we just don't have a net connection to it, but hey nobody's perfect :-)


plus it will solve most of the protocol questions. You could also choose to run a secundary protocol on onother port.

No real need to. The backend has the information we need, so we can just query it.


--
David


_______________________________________________ mythtv-users mailing list [email protected] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Reply via email to