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(); } }
public void stopServices() { DicomServicesCore.stop(); }