endurox.tpsubscribe¶
- endurox.tpsubscribe(eventexpr: str, filter: str, ctl: endurox.TPEVCTL, flags: int = 0) int ¶
Subscribe to event. Once event is published by the tppost(3), it is delivered to subscribers.
Service name is specified in
TPQCTL.name1
.TPQCTL.flags
must be set toTPEVSERVICE
- call service. FlagTPEVPERSIST
may be optionally set to not to remove service from event broker in case if service failed.TPQCTL.name2
is reserved for future use.Service name to which to deliver event notification shall be set in name1 field. Object may be constructed only by the TPEVCTL(flags, name1, name2).
This function applies to ATMI servers only.
For more details see tpsubscribe(3) C API call.
- Raises:
AtmiException –
- Parameters:
- Returns:
subscription - subscription id (may be used to unsubscribe)
- Return type: