PURPOSE

tpsvrdone - System/T server termination routine

SYNOPSIS


#include <atmi.h>
void tpsvrdone(void)		

DESCRIPTION

The System/T server abstraction calls tpsvrdone() after it has finished processing service requests but before it exits. When this routine is invoked, the server is still part of the system but its own services have been unadvertised. Thus, System/T communication can be performed and transactions can be defined in this routine. However, if tpsvrdone() returns with open connections, asynchronous replies pending or while still in transaction mode, the System/T will close its connections, ignore any pending replies and abort the transaction before the server exits.

If an application does not provide this routine in a server, then the default version provided by System/T is called instead. The default tpsvrdone() calls tx_close() and userlog() to announce that the server is about to exit.

USAGE

When either tpreturn(3c) or tpforward(3c) is called in tpsvrdone(), it simply returns having no effect.

SEE ALSO

servopts(5),
tx_close(3c),
tpsvrinit(3c)