1LFC_PING(3)                  LFC Library Functions                 LFC_PING(3)
2
3
4

NAME

6       lfc_ping - check if name server is alive and return its version number
7

SYNOPSIS

9       #include <sys/types.h>
10       #include "lfc_api.h"
11
12       int lfc_ping (char *server, char *info)
13

DESCRIPTION

15       lfc_ping  checks  if  the  name server is alive and returns its version
16       number.
17

OPTIONS

19       server specifies the LFC Name Server hostname.  If NULL,  the  LFC_HOST
20              environment variable is used.
21
22       info   points  at  a  buffer  to receive the information (currently the
23              version number).  The buffer must be  at  least  256  characters
24              long.
25

RETURN VALUE

27       This  routine  returns  0  if the operation was successful or -1 if the
28       operation failed. In the latter case, serrno is set appropriately.
29

ERRORS

31       EFAULT       info is a NULL pointer.
32
33       SENOSHOST    Host unknown.
34
35       SENOSSERV    Service unknown.
36
37       SECOMERR     Communication error.
38
39       ENSNACT      Name server is not running or is being shutdown.
40
41
42
43LFC                      $Date: 2007/05/09 06:38:31 $              LFC_PING(3)
Impressum