tpgetnodeid − Get current process cluster node id
#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
Function returns current cluster node id. Basically that is configured in NDRX_NODEID environment variable, see ex_env(5) page.
On success, tpgetnodeid() return cluster node id (>0); on error, −1 is returned, with tperrno set to indicate the error.
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.
Report bugs to support@mavimax.com
© Mavimax, Ltd