After initializing the necessary event fields, your application may publish an event by calling the
awPublishEvent function. The following example contains an excerpt from the
publish1.c sample application that shows the use of the
awPublishEvent function to publish a single event. The function accepts these parameters:
. . .
BrokerClient c;
BrokerEvent e;
. . .
err = awPublishEvent(c, e);
if (err != AW_NO_ERROR) {
printf("Error on publish\n%s\n", awErrorToString(err));
return 0;
}
. . .