LEADTOOLS For .NET Class Library Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.28
Receiving Messages

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

There are two low-level methods provided by LEADTOOLS: DicomNet.OnReceive and DicomNet.OnReceiveData. A call to the DicomNet.OnReceive method is generated prior to the generation of all the DicomNet.OnReceivexxx methods provided. A call to the DicomNet.OnReceiveData method is generated prior to the DicomNet.OnReceiveCxxx and DicomNet.OnReceiveNxxx methods.

For example, when an SCU calls DicomNet.SendCStoreRequest, calls to DicomNet.OnReceive, DicomNet.OnReceiveData, and DicomNet.OnReceiveCStoreRequest are all generated on the SCP. The DicomNet.OnReceiveCStoreRequest method parses the received data into readily useable form. The DicomNet.OnReceive and DicomNet.OnReceiveData provide the message and data in raw form so you can process the information yourself.

As another example, when an SCU calls DicomNet.SendReleaseRequest, only calls to DicomNet.OnReceive and DicomNet.OnReceiveReleaseRequest are generated. A call to DicomNet.OnReceiveData is not generated, since there is no data being sent.