Your application may subscribe to an event by calling the
awNewSubscription function. The following example contains an excerpt from the
subscribe1.c sample application that shows the use of the
awNewSubscription function. The function accepts these parameters:
. . .
BrokerClient c;
. . .
/* Make a subscription */
err = awNewSubscription(c, "Sample::SimpleEvent", NULL);
if (err != AW_NO_ERROR) {
printf("Error on create subscription\n%s\n", awErrorToString(err));
return 0;
}
. . .