Receiving Messages

LEADTOOLS provides high-level and low-level events for receiving messages and handling the associated data. The high-level events take the received message and data and parse the required information, making it readily available to you. The low-level events let you receive the raw data and process that data as you wish.

There are two low-level events provided by LEADTOOLS, NetReceive event and NetReceiveData event. A call to the NetReceive event is generated prior to the generation of all the NetReceiveXXX events provided. The NetReceiveData event is generated prior to the NetReceiveCxxx and NetReceiveNxxx events.

For example, when an SCU calls the SendCStoreRequest method, the NetReceive, NetReceiveData, and NetReceiveCStoreRequest events are all generated on the SCP. The NetReceiveCStoreRequest event parses the received data into readily useable form. The NetReceive event and NetReceiveData event provide the message and data in raw form so you can process the information yourself.

When an SCU calls the SendReleaseRequest method, only the NetReceive and NetReceiveReleaseRequest events are generated (The NetReceiveData event is not generated.) since there is no data being sent.