Opened 13 years ago
Closed 13 years ago
#10099 closed Bug Report - General (fixed)
Frontend/LcdServer communication
Reported by: | Owned by: | beirdo | |
---|---|---|---|
Priority: | minor | Milestone: | 0.25 |
Component: | MythTV - Mythlcdserver | Version: | Master Head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
Communication between the front-end and the LCD server seems to be broken in git head so actions in the front-end don't get displayed on the LCD. It looks like the problem stems from a change to the constructor for MythSocketDevice? which creates a real socket only if it is creating a UDP socket. TCP sockets, according to the comment are deferred to the "connect". The problem with that is that LCD::connectToHost calls setCallbacks before it calls connect and MythSocketThread::AddToReadyRead? doesn't work if the socket is unset. The work-around is to comment out the "if (type == Datagram)" in MSocketDevice::MSocketDevice.
David
Fix initialization of MSocketDevice class
Fixes #10099.
If we open a TCP socket, we were trying to AddToReadyRead? before even creating the socket, so TCP sockets would fail (such as the one to the LCD daemon). Also cleaned up the lcddevice call to create the socket to just use the ctor for MythSocket?.