Back to home page

Enduro/X

 
 

    


0001 TPGETNODEID(3)
0002 ==============
0003 :doctype: manpage
0004 
0005 
0006 NAME
0007 ----
0008 tpgetnodeid - Get current process cluster node id
0009 
0010 SYNOPSIS
0011 --------
0012 #include <atmi.h>
0013 
0014 long tpgetnodeid(void);
0015 
0016 For XATMI client link with '-latmiclt -latmi -lubf -lnstd -lpthread -lrt -lm'
0017 
0018 For XATMI server link with '-latmisrv|-latmisrvnomain|-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm'
0019 
0020 DESCRIPTION
0021 -----------
0022 Function returns current cluster node id. Basically that is configured in 
0023 *NDRX_NODEID* environment variable, see *ex_env(5)* page.
0024 
0025 RETURN VALUE
0026 ------------
0027 On success, *tpgetnodeid()* return cluster node id (>0); on error, 
0028 -1 is returned, with *tperrno* set to indicate the error.
0029 
0030 
0031 ERRORS
0032 ------
0033 Note that *tpstrerror()* returns generic error message plus custom message 
0034 with debug info from last function call.
0035 
0036 *TPESYSTEM* System failure occurred during serving. See logs i.e. user log, 
0037 or debugs for more info.
0038 
0039 *TPEOS* System failure occurred during serving. See logs i.e. user log, 
0040 or debugs for more info.
0041 
0042 
0043 BUGS
0044 ----
0045 Report bugs to support@mavimax.com
0046 
0047 SEE ALSO
0048 --------
0049 *ex_env(5)*
0050 
0051 COPYING
0052 -------
0053 (C) Mavimax, Ltd
0054