0001 NDRX_MAIN(3)
0002 ============
0003 :doctype: manpage
0004
0005
0006 NAME
0007 ----
0008 ndrx_main - run the XATMI servers main loop
0009
0010
0011 SYNOPSIS
0012 --------
0013 #include <atmi.h>
0014
0015 int ndrx_main(int argc, char **argv);
0016
0017 Link with '-latmisrv|-latmisrvnomain|-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm'
0018
0019 DESCRIPTION
0020 -----------
0021 Function is used in case if Enduro/X XATMI server is linked with '-latmisrvnomain'
0022 library. In this case binary's *main()* function resists outside of Enduro/X
0023 libs, thus to launch the XATMI server, the *ndrx_main()* needs to be called.
0024 The full 'argc' and 'argv' of binary's command line must be passed to this function.
0025
0026 This function is available only for XATMI servers.
0027
0028 RETURN VALUE
0029 ------------
0030 On success, *ndrx_main()* return zero; on error, -1 is returned,
0031 with *tperrno* set to indicate the error.
0032
0033 ERRORS
0034 ------
0035 Note that *tpstrerror()* for returns generic error message plus custom
0036 message with debug info from last call.
0037
0038 *TPESYSTEM* System failure occurred during serving. See logs i.e. user log,
0039 or debugs for more info.
0040
0041 *TPEOS* System failure occurred during serving. See logs i.e. user log,
0042 or debugs for more info.
0043
0044 Other error might be emitted too.
0045
0046 BUGS
0047 ----
0048 Report bugs to support@mavimax.com
0049
0050 SEE ALSO
0051 --------
0052 *ndrx_main_integra(3)* *_tmstartserver(3)*
0053
0054 COPYING
0055 -------
0056 (C) Mavimax, Ltd
0057