version 1.10 | | version 1.11 |
---|
| | |
/* | | /* |
* static char *rcsid_metaserver_c = | | * static char *rcsid_metaserver_c = |
* "$Id: metaserver.c,v 1.10 2001/05/29 04:41:54 mwedel Exp $"; | | * "$Id: metaserver.c,v 1.11 2001/09/24 10:47:30 jbontje Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
sprintf(data,"%s|%d|%s|%s|%d|%d|%ld", settings.meta_host, num_players, VERSION, | | sprintf(data,"%s|%d|%s|%s|%d|%d|%ld", settings.meta_host, num_players, VERSION, |
settings.meta_comment, cst_tot.ibytes, cst_tot.obytes, | | settings.meta_comment, cst_tot.ibytes, cst_tot.obytes, |
(long)time(NULL) - cst_tot.time_start); | | (long)time(NULL) - cst_tot.time_start); |
#ifdef WIN32 /* ---win32 metaserver_init(): this removes a warning */ | | |
if (sendto(metafd, data, strlen(data), 0, (struct sockaddr *)&sock, sizeof(sock))<0) { | | if (sendto(metafd, data, strlen(data), 0, (struct sockaddr *)&sock, sizeof(sock))<0) { |
#else | | |
if (sendto(metafd, data, strlen(data), 0, &sock, sizeof(sock))<0) { | | |
#endif | | |
LOG(llevDebug,"metaserver_update: sendto failed, err = %d\n", errno); | | LOG(llevDebug,"metaserver_update: sendto failed, err = %d\n", errno); |
} | | } |
} | | } |