endurox.tpreturn¶
- endurox.tpreturn(rval: int, rcode: int, data: object, flags: int = 0) None¶
Return from ATMI service call. Any ATMI processing after this call shall not be performed, i.e. shall last operation in the ATMI service processing.
This function applies to ATMI servers only.
For more deatils see tpreturn(3) C API call.
- Parameters:
rval (int) – Return value
TPSUCCESSfor success,TPFAILfor returning errorTPEXITfor returning error and restarting the ATMI server process.rcode (int) – User return code. If not used, use value 0.
data (dict) – ATMI buffer returned from the service
flags (int) – Or’d flags TPSOFTTIMEOUT for simulating
TPETIMEerror to caller. TPSOFTERR return any ATMI call error, which is set in rval param. Default value is 0.