PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
Usage

Worker thread for accepting incoming DICOM connections.

Worker thread for accepting incoming DICOM connectionsThe accept_worker class provides a thread_base-based implementation for the DICOM server's accept loop. It manages:

This class replaces direct std::thread usage in dicom_server, providing:

Note
Current implementation is a placeholder that signals readiness for network_system TCP integration. The actual socket accept logic will be implemented when network_system provides TCP server support.

in dicom_server

accept_worker_ = std::make_unique<detail::accept_worker>(
config_.port,
[this](uint64_t session_id) {
// Handle new connection
},
[this]() {
check_idle_timeouts();
}
);
accept_worker_->set_wake_interval(std::chrono::milliseconds(100));
auto result = accept_worker_->start();