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.
Note that tpstrerror() returns generic error message plus custom message with debug info from last function call.
TPEINVAL Invalid connection descriptor passed in.
TPEOS System failure occurred during serving. See logs i.e. user log, or debugs for more info.
Report bugs to support@mavimax.com
tpsend(3) tprecv(3) tpconnect(3)
© Mavimax, Ltd