|   | 
|   |   |   |   | 
The EventBroker is an Oracle Tuxedo subsystem that receives and filters event posting messages, and distributes them to subscribers. A poster is an Oracle Tuxedo system process that detects when a specific event has occurred and reports (posts) it to the EventBroker. A subscriber is an Oracle Tuxedo system process with a standing request to be notified whenever a specific event has been posted.The EventBroker may be configured such that whenever an event is posted, the EventBroker invokes one or more notification actions for clients and/or servers that have subscribed. Table 8‑1 lists the types of notification actions that the EventBroker can take.
tpsetunsol(*myfunc)The _TMDLLENTRY macro is required for Windows-based operating systems to obtain the proper calling conventions between the Tuxedo libraries and your code.On Unix systems, the _TMDLLENTRY macro is not required because it expands to the null string.Table 8‑2 describes the single argument that can be passed to the tpsetunsol() function.
tpbroadcast(char *lmid, char *usrname, char *cltname, char *data, long len, long flags)Table 8‑3 describes the arguments to the tpbroadcast() function.
if ((strbuf = tpalloc("STRING", NULL, 0)) == NULL) {
error routine
}
(void) strcpy(strbuf, "hello, world");
if (tpbroadcast(NULL, NULL, NULL, strbuf, 0, TPSIGRSTRT) == -1)
error routineThe tpnotify(3c) function is used to broadcast a message using an identifier received with a previously processed message. It can be called only from a service.int
tpnotify(CLIENTID *clientid, char *data, long len, long flags)Table 8‑4 describes the arguments to the tpnotify() function.