User Tools

Site Tools


Sidebar

Table Of Contents

endurox:v7.5.x:api:xatmi:tpdiscon.3

tpdiscon

Name

tpdiscon — Terminate conversational session

Synopsis

#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

DESCRIPTION

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.

RETURN VALUE

On success, tpdiscon() return zero; on error,; on error, -1 is returned, with tperrno set to indicate the error.

ERRORS

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.

BUGS

Report bugs to support@mavimax.com

COPYING

© Mavimax, Ltd