Mercurial > hg > orthanc
comparison UnitTestsSources/MultiThreadingTests.cpp @ 1427:d710ea64f0fd
Custom setting of the local AET during C-Store SCU (both in Lua and in the REST API)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 29 Jun 2015 12:42:54 +0200 |
parents | ac4efabeb80c |
children | c0bdc47165ef |
comparison
equal
deleted
inserted
replaced
1426:2cf9a12c995a | 1427:d710ea64f0fd |
---|---|
136 ReusableDicomUserConnection c; | 136 ReusableDicomUserConnection c; |
137 c.SetMillisecondsBeforeClose(200); | 137 c.SetMillisecondsBeforeClose(200); |
138 printf("START\n"); fflush(stdout); | 138 printf("START\n"); fflush(stdout); |
139 | 139 |
140 { | 140 { |
141 ReusableDicomUserConnection::Locker lock(c, "STORESCP", "localhost", 2000, ModalityManufacturer_Generic); | 141 RemoteModalityParameters remote("STORESCP", "localhost", 2000, ModalityManufacturer_Generic); |
142 ReusableDicomUserConnection::Locker lock(c, "ORTHANC", remote); | |
142 lock.GetConnection().StoreFile("/home/jodogne/DICOM/Cardiac/MR.X.1.2.276.0.7230010.3.1.4.2831157719.2256.1336386844.676281"); | 143 lock.GetConnection().StoreFile("/home/jodogne/DICOM/Cardiac/MR.X.1.2.276.0.7230010.3.1.4.2831157719.2256.1336386844.676281"); |
143 } | 144 } |
144 | 145 |
145 printf("**\n"); fflush(stdout); | 146 printf("**\n"); fflush(stdout); |
146 Toolbox::USleep(1000000); | 147 Toolbox::USleep(1000000); |
147 printf("**\n"); fflush(stdout); | 148 printf("**\n"); fflush(stdout); |
148 | 149 |
149 { | 150 { |
150 ReusableDicomUserConnection::Locker lock(c, "STORESCP", "localhost", 2000, ModalityManufacturer_Generic); | 151 RemoteModalityParameters remote("STORESCP", "localhost", 2000, ModalityManufacturer_Generic); |
152 ReusableDicomUserConnection::Locker lock(c, "ORTHANC", remote); | |
151 lock.GetConnection().StoreFile("/home/jodogne/DICOM/Cardiac/MR.X.1.2.276.0.7230010.3.1.4.2831157719.2256.1336386844.676277"); | 153 lock.GetConnection().StoreFile("/home/jodogne/DICOM/Cardiac/MR.X.1.2.276.0.7230010.3.1.4.2831157719.2256.1336386844.676277"); |
152 } | 154 } |
153 | 155 |
154 Toolbox::ServerBarrier(); | 156 Toolbox::ServerBarrier(); |
155 printf("DONE\n"); fflush(stdout); | 157 printf("DONE\n"); fflush(stdout); |