User Tools

Site Tools


Sidebar

Table Of Contents

endurox:v7.5.x:api:xatmi:tpgetnodeid.3

tpgetnodeid

Name

tpgetnodeid — Get current process cluster node id

Synopsis

#include <atmi.h>

long tpgetnodeid(void);

For XATMI client link with -latmiclt -latmi -lubf -lnstd -lpthread -lrt -lm

For XATMI server link with -latmisrv|-latmisrvnomain|-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm

DESCRIPTION

Function returns current cluster node id. Basically that is configured in NDRX_NODEID environment variable, see ex_env(5) page.

RETURN VALUE

On success, tpgetnodeid() return cluster node id (>0); on error, -1 is returned, with tperrno set to indicate the error.

ERRORS

Note that tpstrerror() returns generic error message plus custom message with debug info from last function call.

TPESYSTEM System failure occurred during serving. See logs i.e. user log, or debugs for more info.

TPEOS System failure occurred during serving. See logs i.e. user log, or debugs for more info.

BUGS

Report bugs to support@mavimax.com

SEE ALSO

ex_env(5)

COPYING

© Mavimax, Ltd