comparison UnitTestsSources/MultiThreadingTests.cpp @ 2222:21713ce8717b

Fix handling of Move Originator AET and ID in C-MOVE SCP
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 13 Dec 2016 14:34:33 +0100
parents fd5875662670
children 4e8e0ad2001c
comparison
equal deleted inserted replaced
2221:e7beca979562 2222:21713ce8717b
137 printf("START\n"); fflush(stdout); 137 printf("START\n"); fflush(stdout);
138 138
139 { 139 {
140 RemoteModalityParameters remote("STORESCP", "localhost", 2000, ModalityManufacturer_Generic); 140 RemoteModalityParameters remote("STORESCP", "localhost", 2000, ModalityManufacturer_Generic);
141 ReusableDicomUserConnection::Locker lock(c, "ORTHANC", remote); 141 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", 0); 142 lock.GetConnection().StoreFile("/home/jodogne/DICOM/Cardiac/MR.X.1.2.276.0.7230010.3.1.4.2831157719.2256.1336386844.676281");
143 } 143 }
144 144
145 printf("**\n"); fflush(stdout); 145 printf("**\n"); fflush(stdout);
146 Toolbox::USleep(1000000); 146 Toolbox::USleep(1000000);
147 printf("**\n"); fflush(stdout); 147 printf("**\n"); fflush(stdout);
148 148
149 { 149 {
150 RemoteModalityParameters remote("STORESCP", "localhost", 2000, ModalityManufacturer_Generic); 150 RemoteModalityParameters remote("STORESCP", "localhost", 2000, ModalityManufacturer_Generic);
151 ReusableDicomUserConnection::Locker lock(c, "ORTHANC", remote); 151 ReusableDicomUserConnection::Locker lock(c, "ORTHANC", remote);
152 lock.GetConnection().StoreFile("/home/jodogne/DICOM/Cardiac/MR.X.1.2.276.0.7230010.3.1.4.2831157719.2256.1336386844.676277", 0); 152 lock.GetConnection().StoreFile("/home/jodogne/DICOM/Cardiac/MR.X.1.2.276.0.7230010.3.1.4.2831157719.2256.1336386844.676277");
153 } 153 }
154 154
155 SystemToolbox::ServerBarrier(); 155 SystemToolbox::ServerBarrier();
156 printf("DONE\n"); fflush(stdout); 156 printf("DONE\n"); fflush(stdout);
157 } 157 }