Mercurial > hg > orthanc
comparison OrthancServer/OrthancFindRequestHandler.cpp @ 1573:3309878b3e16
more information about the origin of requests submitted to the DICOM handlers
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 25 Aug 2015 13:05:22 +0200 |
parents | f967bdf8534e |
children | bd1889029cbb |
comparison
equal
deleted
inserted
replaced
1572:904096e7367e | 1573:3309878b3e16 |
---|---|
214 | 214 |
215 | 215 |
216 | 216 |
217 bool OrthancFindRequestHandler::Handle(DicomFindAnswers& answers, | 217 bool OrthancFindRequestHandler::Handle(DicomFindAnswers& answers, |
218 const DicomMap& input, | 218 const DicomMap& input, |
219 const std::string& callingAETitle) | 219 const std::string& remoteIp, |
220 const std::string& remoteAet) | |
220 { | 221 { |
221 /** | 222 /** |
222 * Ensure that the calling modality is known to Orthanc. | 223 * Ensure that the calling modality is known to Orthanc. |
223 **/ | 224 **/ |
224 | 225 |
225 RemoteModalityParameters modality; | 226 RemoteModalityParameters modality; |
226 | 227 |
227 if (!Configuration::LookupDicomModalityUsingAETitle(modality, callingAETitle)) | 228 if (!Configuration::LookupDicomModalityUsingAETitle(modality, remoteAet)) |
228 { | 229 { |
229 throw OrthancException("Unknown modality"); | 230 throw OrthancException("Unknown modality"); |
230 } | 231 } |
231 | 232 |
232 // ModalityManufacturer manufacturer = modality.GetManufacturer(); | 233 // ModalityManufacturer manufacturer = modality.GetManufacturer(); |