bproc_masteraddr

Name

bproc_masteraddr – Get the private cluster network IP address for the master node.

Synopsis

#include <sys/bproc.h>
int bproc_masteraddr (struct sockaddr * addr, int * size);

Arguments

addr

pointer to a struct sockaddr

size

The size of addr

Description

Save the master node’s IP address in the struct sockaddr pointed to by addr. size should be initialized to indicate the amount of space pointed to by addr. On return it contains the actual size of the addr returned (in bytes).

Return Value

Returns 0 on success.

Returns -1 on error, and sets errno.

Errors

EFAULT

addr or size points to memory that is not accessible by the program.

EIO

There was an I/O error.

ENOMEM

Out of memory error.