Notifies a connection when a Data message was received. This function is available in the Medical Imaging Suite Toolkit.
virtual L_VOID LDicomNet::OnReceiveData(nPresentationID, pCS, pDS)
Presentation ID. The presentation ID provides information about both the class type of the data and the transfer syntax to use when transferring the data.
A DICOM object that references the command set that contains the actual command message.
A DICOM object that contains the actual data. This may be NULL if no data set is included.
This is a low level means of receiving DICOM messages and data. It allows you to process messages yourself, instead of using the high level message processing functions provided.
This function is called for each LDicomNet::SendCXXX or LDicomNet::SendNXXX function provided by LEADTOOLS.
LMyDicomNet is a class derived from LDicomNet
In class LMyDicomNet, all events (virtual functions OnXXX()) have been overridden so that they can be processed. Each event displays a MessageBox identifying the event, the IP that generated the event, the IP that received the event and any other relevant data.
For the entire derived class, see (hyperlink)LMyDicomNet class
L_VOID LMyDicomNet::OnReceiveData(L_UCHAR nID, LDicomDS *pCS, LDicomDS *pDS)
strMsg.Format(TEXT("*** OnReceiveData ***\nnID[%d]\n"), nID);
strMsg += TEXT("Received a command set\n");
strMsg += TEXT("Received a data set\n");
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries