Use getaddrinfo instead of gethostbyname. Hopefully this makes us compatible with...
authorTim Mann <tim@tim-mann.org>
Mon, 2 May 2011 02:56:38 +0000 (19:56 -0700)
committerTim Mann <tim@tim-mann.org>
Mon, 2 May 2011 02:56:38 +0000 (19:56 -0700)
commit27b75b6ad9b4041be7c2387b34a4f4043de8ff53
treea24831bba164228f46675f090ab237a8f17fcd18
parent63837dad0a939f1572493ad8a6f541929ebb1841
Use getaddrinfo instead of gethostbyname.  Hopefully this makes us compatible with IPv6 and with hosts that have more than one IP address.  However, I don't know of any chess servers that have either of those properties, so I couldn't test that.  I did test that xboard still works with freechess.org and chessclub.com and that it gives an error message for invalid host names.
xboard.c