Mercurial > hg > orthanc
comparison OrthancServer/main.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 | 904096e7367e |
children | ba0226474e22 |
comparison
equal
deleted
inserted
replaced
1572:904096e7367e | 1573:3309878b3e16 |
---|---|
64 OrthancStoreRequestHandler(ServerContext& context) : | 64 OrthancStoreRequestHandler(ServerContext& context) : |
65 server_(context) | 65 server_(context) |
66 { | 66 { |
67 } | 67 } |
68 | 68 |
69 | |
69 virtual void Handle(const std::string& dicomFile, | 70 virtual void Handle(const std::string& dicomFile, |
70 const DicomMap& dicomSummary, | 71 const DicomMap& dicomSummary, |
71 const Json::Value& dicomJson, | 72 const Json::Value& dicomJson, |
73 const std::string& remoteIp, | |
72 const std::string& remoteAet, | 74 const std::string& remoteAet, |
73 const std::string& calledAet) | 75 const std::string& calledAet) |
74 { | 76 { |
75 if (dicomFile.size() > 0) | 77 if (dicomFile.size() > 0) |
76 { | 78 { |
77 DicomInstanceToStore toStore; | 79 DicomInstanceToStore toStore; |
78 toStore.SetDicomProtocolOrigin(remoteAet.c_str(), calledAet.c_str()); | 80 toStore.SetDicomProtocolOrigin(remoteIp.c_str(), remoteAet.c_str(), calledAet.c_str()); |
79 toStore.SetBuffer(dicomFile); | 81 toStore.SetBuffer(dicomFile); |
80 toStore.SetSummary(dicomSummary); | 82 toStore.SetSummary(dicomSummary); |
81 toStore.SetJson(dicomJson); | 83 toStore.SetJson(dicomJson); |
82 | 84 |
83 std::string id; | 85 std::string id; |