[mythtv] mythbackend and mythlcdserver broken at the moment?

Isaac Richards ijr at case.edu
Tue Jul 1 20:35:45 UTC 2008


On Tuesday 01 July 2008 4:20:43 pm Isaac Richards wrote:
> On Tuesday 01 July 2008 3:51:42 pm Isaac Richards wrote:
> > On Tuesday 01 July 2008 2:36:51 pm Paul Harrison wrote:
> > > There is of cause some easy fixes for this - change the default in
> > > lcddevice.cpp to use 127.0.0.1 or a more generic fix would be to add a
> > > special case in MythSocket::connect(const QString &host, Q_UINT16 port)
> > > to check host for 'localhost' or maybe do a QHostInfo::fromName () if
> > > the QHostAddress::setAddress() fails?
> >
> > I'm planning on just adding a localhost workaround to
> > MythSocket::connect. Or, maybe the hostname lookup stuff isn't broken in
> > qt4 like the qt3 version was..
>
> Yeah, it looks like we can use QHostInfo::fromName() - it's blocking and
> doesn't involve the Qt event loop like the qt3 version did.

Does the attached patch work?  I can't test at the moment.

Isaac
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lookup.diff
Type: text/x-diff
Size: 862 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20080701/12c417dd/attachment.bin 


More information about the mythtv-dev mailing list