BACK
Manpage of LIBCLUSTER
LIBCLUSTER
Section: OpenSSI Prog Manual (3ssi)
Updated: 25 November 2003
NAME
clusternode_get_ip - returns address of a node
SYNOPSIS
#include <sys/cluster.h>
int clusternode_get_ip(clusternode_t node, struct sockaddr * addr
, int * size)
cc [flag ...] file -lcluster [library ...]
DESCRIPTION
clusternode_get_ip returns the address of the node given by node in addr. The size of addr is returned in the size parameter. The ip address is obtained by reading /etc/clustertab.
RETURN VALUE
clusternode_get_ip() returns 0 on success, and -1 on error(errno is set appropriately).
ERRORS
- EINVAL
-
If node is invalid (If node not found in /etc/clustertab).
- ENOENT
-
Error opening /etc/clustertab
FILES
- /etc/clustertab
-
SEE ALSO
clusternode_info(3ssi),
clusternode_num(3ssi)
This document was created by man2html,
using the manual pages.
Time: 21:59:39 GMT, May 19, 2004