version 1.3 | | version 1.4 |
---|
| | |
/* | | /* |
* static char *rcsid_metaserver_c = | | * static char *rcsid_metaserver_c = |
* "$Id: metaserver.c,v 1.3 2000/11/18 04:27:49 cvs Exp $"; | | * "$Id: metaserver.c,v 1.4 2000/11/26 03:48:03 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} | | } |
sock.sin_family = AF_INET; | | sock.sin_family = AF_INET; |
sock.sin_port = htons(settings.meta_port); | | sock.sin_port = htons(settings.meta_port); |
| | #ifndef __FreeBSD__ |
| | /* Freebsd seems to have a problem in that the sendto in metaserver_update will |
| | * fail on a connected socket. So don't connect the socket. |
| | */ |
if (connect(metafd, &sock, sizeof(sock))<0) { | | if (connect(metafd, &sock, sizeof(sock))<0) { |
LOG(llevDebug,"metaserver_init: Unable to connect to metaserver, err %d\n", errno); | | LOG(llevDebug,"metaserver_init: Unable to connect to metaserver, err %d\n", errno); |
} | | } |
| | #endif |
/* No hostname specified, so lets try to figure one out */ | | /* No hostname specified, so lets try to figure one out */ |
if (settings.meta_host[0]==0) { | | if (settings.meta_host[0]==0) { |
char hostname[MAX_BUF], domain[MAX_BUF]; | | char hostname[MAX_BUF], domain[MAX_BUF]; |