1DPNS_PING(3) DPNS Library Functions DPNS_PING(3)
2
3
4
6 dpns_ping - check if name server is alive and return its version number
7
9 #include <sys/types.h>
10 #include "dpns_api.h"
11
12 int dpns_ping (char *server, char *info)
13
15 dpns_ping checks if the name server is alive and returns its version
16 number.
17
19 server specifies the DPNS Name Server hostname. If NULL, the DPNS_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
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
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
43DPNS $Date: 2007/05/09 06:38:31 $ DPNS_PING(3)