|
|
@ -1,4 +1,4 @@
|
|
|
|
/* $Id: ogcache-client.c,v 1.4 2004/01/06 19:52:02 stpohle Exp $
|
|
|
|
/* $Id: ogcache-client.c,v 1.5 2004/02/01 00:39:26 stpohle Exp $
|
|
|
|
* OpenGameCache-Client: this file will hold the protocol for the gameserver communication
|
|
|
|
* OpenGameCache-Client: this file will hold the protocol for the gameserver communication
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
@ -178,7 +178,8 @@ int ogc_init (char *localport, char *server, char *port, char *game, int ai_fami
|
|
|
|
ogc_ai_family = ai_family;
|
|
|
|
ogc_ai_family = ai_family;
|
|
|
|
|
|
|
|
|
|
|
|
d_printf ("ogc_host:%s ogc_port:%s ogc_game:%s ogc_ai_family:%d\n", ogc_host, ogc_port, ogc_game, ogc_ai_family);
|
|
|
|
d_printf ("ogc_host:%s ogc_port:%s ogc_game:%s ogc_ai_family:%d\n", ogc_host, ogc_port, ogc_game, ogc_ai_family);
|
|
|
|
dns_filladdr (ogc_host, LEN_OGCHOST, ogc_port, LEN_OGCPORT, ogc_ai_family, &ogc_addr);
|
|
|
|
if (dns_filladdr (ogc_host, LEN_OGCHOST, ogc_port, LEN_OGCPORT, ogc_ai_family, &ogc_addr) < 0)
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < MAX_OGC_ENTRYS; i++)
|
|
|
|
for (i = 0; i < MAX_OGC_ENTRYS; i++)
|
|
|
|
ogc_array[i].serial = -1;
|
|
|
|
ogc_array[i].serial = -1;
|
|
|
|