comparison OrthancServer/OrthancRestApi/OrthancRestModalities.cpp @ 2587:bf14b037731f jobs

new constructor for DicomUserConnection
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 14 May 2018 21:44:41 +0200
parents ec09641d6f41
children a3fdfb6979ed
comparison
equal deleted inserted replaced
2586:ec09641d6f41 2587:bf14b037731f
87 else 87 else
88 { 88 {
89 connection_->Store(dicom); 89 connection_->Store(dicom);
90 } 90 }
91 91
92 boost::this_thread::sleep(boost::posix_time::milliseconds(500)); 92 //boost::this_thread::sleep(boost::posix_time::milliseconds(500));
93 93
94 return true; 94 return true;
95 } 95 }
96 96
97 public: 97 public:
219 std::auto_ptr<HttpClient> client_; 219 std::auto_ptr<HttpClient> client_;
220 220
221 protected: 221 protected:
222 virtual bool HandleInstance(const std::string& instance) 222 virtual bool HandleInstance(const std::string& instance)
223 { 223 {
224 boost::this_thread::sleep(boost::posix_time::milliseconds(500)); 224 //boost::this_thread::sleep(boost::posix_time::milliseconds(500));
225 225
226 if (client_.get() == NULL) 226 if (client_.get() == NULL)
227 { 227 {
228 client_.reset(new HttpClient(peer_, "instances")); 228 client_.reset(new HttpClient(peer_, "instances"));
229 client_->SetMethod(HttpMethod_Post); 229 client_->SetMethod(HttpMethod_Post);