endurox.tpunsubscribe

endurox.tpunsubscribe(subscription: int, flags: int = 0) int

Unsubscribe from event.

This function applies to ATMI servers only.

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

Raises:

AtmiException

Following error codes may be present:
TPEINVAL - Invalid subscription id was passed.
TPENOENT - Event server tpevsrv(5) is not available.
TPETIME - Timeout calling event server.
TPESVCFAIL - Event server failed.
TPESVCERR - Event server crashed.
TPESYSTEM - System error occurred.
TPEOS - OS error.

Parameters:
Returns:

subscription - subscription id (may be used to unsubscribe)

Return type:

int