endurox.tpconnect

endurox.tpconnect(svc: str, idata: object, flags: int = 0) int

Connect to conversational service. Connection provides half-duplex data streaming between client and service/server where data exchange is organized by using tpsend() and tprecv() ATMI calls.

For more details see tpconnect(3) C API call.

Raises:

AtmiException

Following error codes may be present:
TPEINVAL - Invalid arguments passed to function.
TPENOENT - svc service is not available.
TPELIMIT - Max number of open connections are reached.
TPESVCERR - Service crashed.
TPESYSTEM - System error occurred.
TPEOS - Operating system error occurred.
TPETRAN - Destination service was unable to start global transaction.
TPEITYPE - Destination server does not accept buffer type sent.

Parameters: