Esempio n. 1
0
 public void startServices(
     String aeTitle, int port, String hostname, String destination, Object eventListener) {
   DicomServicesCore.prepare();
   DicomServicesCore.setPort(port);
   DicomServicesCore.setHostname(hostname);
   DicomServicesCore.setAEtitle(aeTitle);
   DicomServicesCore.setPackPDV(true);
   DicomServicesCore.setTcpNoDelay(true);
   DicomServicesCore.initTransferCapability();
   storageService.setDestination(destination);
   storageService.setEventListener(eventListener);
   DicomCFindGetService.setEventListener(eventListener);
   try {
     DicomServicesCore.start();
   } catch (IOException e) {
     e.printStackTrace();
   }
 }
Esempio n. 2
0
 public void stopServices() {
   DicomServicesCore.stop();
 }