tpdiscon — Terminate conversational session
#include <atmi.h>
int tpdiscon(int cd);
For XATMI client link with -latmiclt -latmi -lubf -lnstd -lpthread -lrt -lm
For XATMI server link with -latmisrv|-latmisrvnomain|-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm
Terminate connection and send TPEV_DISCONIMM event to other connection end. This operations does not terminate global transaction, if one in progress. It is up to user to do the abort with tpabort(). tpdiscon() can be involved in any point at the progress of conversational session.
On success, tpdiscon() return zero; on error,; on error, -1 is returned, with tperrno set to indicate the error.