[mythtv] allow DNS names as well as IP addresses in server setup

Anduin Withers awithers at anduin.com
Sat Mar 5 23:24:02 UTC 2005


> The following patch allows you to put in either hostnames or IP
> addresses in the BackendServerIP and MasterServerIP fields.
> I've only minimally tested it, but it seems to work in my setup.

1. I personally like it but
2. The logic is faulty, you can't if (h == 0 || blah), that or is going to
be bad (you're not short-circuiting)
3. Why not just use gethostbyname? gethostbyname2 is a glibc extension.

-- 
Anduin Withers



More information about the mythtv-dev mailing list