Mercurial > hg > orthanc
comparison OrthancServer/main.cpp @ 3606:33ba63637d48 storage-commitment
DicomUserConnection: sending N-EVENT-REPORT-RQ
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 16 Jan 2020 19:24:52 +0100 |
parents | e327b44780bb |
children | d0ecb355db33 |
comparison
equal
deleted
inserted
replaced
3605:05872838ebf3 | 3606:33ba63637d48 |
---|---|
94 class OrthancStorageCommitmentRequestHandler : public IStorageCommitmentRequestHandler | 94 class OrthancStorageCommitmentRequestHandler : public IStorageCommitmentRequestHandler |
95 { | 95 { |
96 private: | 96 private: |
97 ServerContext& server_; | 97 ServerContext& server_; |
98 | 98 |
99 // TODO - Remove this | |
100 static void Toto() | |
101 { | |
102 printf("Sleeping\n"); | |
103 boost::this_thread::sleep(boost::posix_time::milliseconds(100)); | |
104 printf("Connect back\n"); | |
105 | |
106 RemoteModalityParameters p("STGCMTSCU", "localhost", 11114, ModalityManufacturer_Generic); | |
107 DicomUserConnection scu("ORTHANC", p); | |
108 | |
109 std::vector<std::string> a, b, c, d; | |
110 a.push_back("a"); b.push_back("b"); | |
111 a.push_back("c"); b.push_back("d"); | |
112 | |
113 //scu.ReportStorageCommitment("transaction", a, b, c, d); | |
114 scu.ReportStorageCommitment("transaction", a, b, a, b); | |
115 } | |
116 | |
99 public: | 117 public: |
100 OrthancStorageCommitmentRequestHandler(ServerContext& context) : | 118 OrthancStorageCommitmentRequestHandler(ServerContext& context) : |
101 server_(context) | 119 server_(context) |
102 { | 120 { |
103 } | 121 } |
108 const std::string& remoteIp, | 126 const std::string& remoteIp, |
109 const std::string& remoteAet, | 127 const std::string& remoteAet, |
110 const std::string& calledAet) | 128 const std::string& calledAet) |
111 { | 129 { |
112 // TODO - Enqueue a Storage commitment job | 130 // TODO - Enqueue a Storage commitment job |
131 | |
132 boost::thread t(Toto); | |
113 } | 133 } |
114 }; | 134 }; |
115 | 135 |
116 | 136 |
117 | 137 |