0001 TPDISCON(3)
0002 ===========
0003 :doctype: manpage
0004
0005
0006 NAME
0007 ----
0008 tpdiscon - Terminate conversational session
0009
0010
0011 SYNOPSIS
0012 --------
0013 #include <atmi.h>
0014
0015 int tpdiscon(int 'cd');
0016
0017
0018 For XATMI client link with '-latmiclt -latmi -lubf -lnstd -lpthread -lrt -lm'
0019
0020 For XATMI server link with '-latmisrv|-latmisrvnomain|-latmisrvinteg -latmi -lubf -lnstd -lpthread -lrt -lm'
0021
0022 DESCRIPTION
0023 -----------
0024 Terminate connection and send *TPEV_DISCONIMM* event to other connection end.
0025 This operations does not terminate global transaction, if one in progress.
0026 It is up to user to do the abort with *tpabort()*.
0027 *tpdiscon()* can be involved in any point at the progress of conversational session.
0028
0029 RETURN VALUE
0030 ------------
0031 On success, *tpdiscon()* return zero; on error,; on error, -1 is returned,
0032 with *tperrno* set to indicate the error.
0033
0034 ERRORS
0035 ------
0036 Note that *tpstrerror()* returns generic error message plus custom
0037 message with debug info from last function call.
0038
0039 *TPEINVAL* Invalid connection descriptor passed in.
0040
0041 *TPEOS* System failure occurred during serving. See logs i.e. user log,
0042 or debugs for more info.
0043
0044 BUGS
0045 ----
0046 Report bugs to support@mavimax.com
0047
0048 SEE ALSO
0049 --------
0050 *tpsend(3)* *tprecv(3)* *tpconnect(3)*
0051
0052 COPYING
0053 -------
0054 (C) Mavimax, Ltd
0055