Obtaining the Client Identifier
The best way to obtain a Broker client's identifier is to extract it from an event that you have received from that Broker client, as shown in the following example. You may also hard code the client identifier of the recipient, if it is well known.
. . .
BrokerEvent e;
char *client_id;
. . .
err = awGetStringField(e, "_env.pubId", &client_id);
if (err != AW_NO_ERROR) {
printf("Error on get string\n%s\n", awErrorToString(err));
return 0;
}
. . .