User Tools

Site Tools


Sidebar

Table Of Contents

endurox:v7.0.x:api:xatmi:ndrx_main.3

NDRX_MAIN

NDRX_MAIN

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
BUGS
SEE ALSO
COPYING

NAME

ndrx_main − run the XATMI servers main loop

SYNOPSIS

#include <atmi.h>

int ndrx_main(int argc, char **argv);

Link with −latmisrv|−latmisrvnomain|−latmisrvinteg −latmi −lubf −lnstd −lpthread −lrt −lm

DESCRIPTION

Function is used in case if Enduro/X XATMI server is linked with −latmisrvnomain library. In this case binary’s main() function resists outside of Enduro/X libs, thus to launch the XATMI server, the ndrx_main() needs to be called. The full argc and argv of binary’s command line must be passed to this function.

This function is available only for XATMI servers.

RETURN VALUE

On success, ndrx_main() return zero; on error, −1 is returned, with tperrno set to indicate the error.

ERRORS

Note that tpstrerror() for returns generic error message plus custom message with debug info from last 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.

Other error might be emitted too.

BUGS

Report bugs to support@mavimax.com

SEE ALSO

ndrx_main_integra(3) _tmstartserver(3)

COPYING

© Mavimax, Ltd