Back to home page

Enduro/X

 
 

    


0001 TPUNADVERTISE(3)
0002 ================
0003 :doctype: manpage
0004 
0005 
0006 NAME
0007 ----
0008 tpunadvertise - remove service from service registry
0009 
0010 
0011 SYNOPSIS
0012 --------
0013 #include <atmi.h>
0014 
0015 int tpunadvertise(char *'svcname');
0016 
0017 Link with '-latmisrv|-latmisrvnomain|-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm'
0018 
0019 DESCRIPTION
0020 -----------
0021 Remove serivce in parameter 'svcname' from Enduro/X application server service registry. Service previously must be advertised by server process by *tpadvertise()* or by service aliasing which was done during process startup with configuration in *ndrxconfig.xml(5)*.
0022 
0023 This function is available only for XATMI servers.
0024 
0025 RETURN VALUE
0026 ------------
0027 On success, *tpunadvertise()* return zero; on error, -1 is returned, with *tperrno* set to indicate the error.
0028 
0029 
0030 ERRORS
0031 ------
0032 Note that *tpstrerror()* for returns generic error message plus custom message with debug info from last call.
0033 
0034 *TPENOENT* Service not advertised by current XATMI server process.
0035 
0036 *TPEOS* Operating system error, that could insufficient memory or other error or problem with manipulating with underlaying queues. The Enduro/X logs (*ndrxdebug.conf*) for more infos.
0037 
0038 *TPESYSTEM* Failed to updated *ndrxd* for changes in service registry.
0039 
0040 EXAMPLE
0041 -------
0042 See *atmitest/test007_advertise/atmisv.c* for sample code.
0043 
0044 BUGS
0045 ----
0046 Report bugs to support@mavimax.com
0047 
0048 SEE ALSO
0049 --------
0050 *tpadvertise(3)* *ndrxd(8)* *ndrxdebug.conf(5)* *ndrxconfig.xml(5)*
0051 
0052 COPYING
0053 -------
0054 (C) Mavimax, Ltd
0055