endurox.tpbroadcast

endurox.tpbroadcast(lmid: str, usrname: str, cltname: str, idata: object, flags: int = 0) None

Broadcast unsolicited message to several processes at once.

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

tpbroadcast example
import endurox as e
e.tpbroadcast("", "", "python3", {})
Raises:

AtmiException

Following error codes may be present:
TPEINVAL - Invalid environment or invalid parameters.
TPESYSTEM - System error occurred.
TPEOS - Operating system error occurred.

Parameters:
  • lmid (str) – Cluster node id. In case of TPREGEXMATCH flag several nodes may be matched with regexp.

  • usrname (str) – RFU.

  • cltname (str) – Client process binary name. In case of TPREGEXMATCH flag several nodes may be matched with regexp.

  • idata (dict) – Input ATMI buffer to be delivered to matched processes and nodes.

  • flags (int) – Bitwise or’d TPNOBLOCK, TPSIGRSTRT, TPNOTIME, TPREGEXMATCH.