comparison UnitTestsSources/MultiThreadingTests.cpp @ 1907:5011a597b6ce

Support of Move Originator Message ID (0000,1031) in C-Store responses driven by C-Move
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 07 Jan 2016 11:28:19 +0100
parents b1291df2f780
children aa4b8895cd23
comparison
equal deleted inserted replaced
1906:d7c1cb559431 1907:5011a597b6ce
136 printf("START\n"); fflush(stdout); 136 printf("START\n"); fflush(stdout);
137 137
138 { 138 {
139 RemoteModalityParameters remote("STORESCP", "localhost", 2000, ModalityManufacturer_Generic); 139 RemoteModalityParameters remote("STORESCP", "localhost", 2000, ModalityManufacturer_Generic);
140 ReusableDicomUserConnection::Locker lock(c, "ORTHANC", remote); 140 ReusableDicomUserConnection::Locker lock(c, "ORTHANC", remote);
141 lock.GetConnection().StoreFile("/home/jodogne/DICOM/Cardiac/MR.X.1.2.276.0.7230010.3.1.4.2831157719.2256.1336386844.676281"); 141 lock.GetConnection().StoreFile("/home/jodogne/DICOM/Cardiac/MR.X.1.2.276.0.7230010.3.1.4.2831157719.2256.1336386844.676281", 0);
142 } 142 }
143 143
144 printf("**\n"); fflush(stdout); 144 printf("**\n"); fflush(stdout);
145 Toolbox::USleep(1000000); 145 Toolbox::USleep(1000000);
146 printf("**\n"); fflush(stdout); 146 printf("**\n"); fflush(stdout);
147 147
148 { 148 {
149 RemoteModalityParameters remote("STORESCP", "localhost", 2000, ModalityManufacturer_Generic); 149 RemoteModalityParameters remote("STORESCP", "localhost", 2000, ModalityManufacturer_Generic);
150 ReusableDicomUserConnection::Locker lock(c, "ORTHANC", remote); 150 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"); 151 lock.GetConnection().StoreFile("/home/jodogne/DICOM/Cardiac/MR.X.1.2.276.0.7230010.3.1.4.2831157719.2256.1336386844.676277", 0);
152 } 152 }
153 153
154 Toolbox::ServerBarrier(); 154 Toolbox::ServerBarrier();
155 printf("DONE\n"); fflush(stdout); 155 printf("DONE\n"); fflush(stdout);
156 } 156 }