Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client C API Programmer's Guide | API Reference | awEvent | awEventFromBinData
 
awEventFromBinData
BrokerError awEventFromBinData(
BrokerClient client,
char *data,
int size,
BrokerEvent *event);
client
The client that is associated with this event. This may be set to NULL.
data
The binary data to use to create the event.
size
The size of the data.
event
The area were the created event is returned. This parameter is used for output.
Creates a Broker event using a byte array previously returned by the awEventToBinData function. The client may be NULL if you wish to create the event without type checking its contents.
The caller is responsible for calling awDeleteEvent on the output value.
Possible BrokerError major codes
Meaning
AW_ERROR_CORRUPT
The data parameter does not point to a valid event.
AW_ERROR_INVALID_CLIENT
The client parameter is not NULL and has been destroyed or disconnected.
AW_ERROR_NO_PERMISSION
The client does not have permission to publish or subscribe to event_type_name.
AW_ERROR_NULL_PARAM
The event or data parameter is NULL.
AW_ERROR_UNKNOWN_EVENT_TYPE
The event type does not exist on the Broker.
See also: