version 1.4 | | version 1.5 |
---|
| | |
/* | | /* |
* static char *rcsid_metaserver_c = | | * static char *rcsid_metaserver_c = |
* "$Id: metaserver.c,v 1.4 2000/11/26 03:48:03 cvs Exp $"; | | * "$Id: metaserver.c,v 1.5 2000/11/26 04:56:05 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
#include <global.h> | | #include <global.h> |
#include <version.h> | | #include <version.h> |
#include <patchlevel.h> | | |
| | |
static int metafd=-1; | | static int metafd=-1; |
static struct sockaddr_in sock; | | static struct sockaddr_in sock; |
| | |
*/ | | */ |
for (pl=first_player; pl!=NULL; pl=pl->next) num_players++; | | for (pl=first_player; pl!=NULL; pl=pl->next) num_players++; |
| | |
sprintf(data,"%s|%d|%s%s|%s", settings.meta_host, num_players, VERSION, PATCH, | | sprintf(data,"%s|%d|%s|%s", settings.meta_host, num_players, VERSION, |
settings.meta_comment); | | settings.meta_comment); |
if (sendto(metafd, data, strlen(data), 0, &sock, sizeof(sock))<0) { | | if (sendto(metafd, data, strlen(data), 0, &sock, sizeof(sock))<0) { |
LOG(llevDebug,"metaserver_update: sendto failed, err = %d\n", errno); | | LOG(llevDebug,"metaserver_update: sendto failed, err = %d\n", errno); |