PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
kcenon::pacs::network::server_config Struct Reference

#include <server_config.h>

Collaboration diagram for kcenon::pacs::network::server_config:
Collaboration graph

Public Member Functions

 server_config ()=default
 Default constructor with sensible defaults.
 
 server_config (std::string ae, uint16_t listen_port)
 Construct with minimal required parameters.
 

Public Attributes

std::string ae_title {"PACS_SCP"}
 Application Entity Title for this server (16 chars max)
 
uint16_t port {11112}
 Port to listen on (default: 11112, standard alternate DICOM port)
 
size_t max_associations {20}
 Maximum concurrent associations (0 = unlimited)
 
uint32_t max_pdu_size {DEFAULT_MAX_PDU_LENGTH}
 Maximum PDU size for data transfer.
 
std::chrono::seconds idle_timeout {300}
 Idle timeout for associations (0 = no timeout)
 
std::chrono::seconds association_timeout {30}
 Timeout for association negotiation.
 
std::vector< std::string > ae_whitelist
 AE Title whitelist (empty = accept all)
 
std::string implementation_class_uid {"1.2.826.0.1.3680043.2.1545.1"}
 Implementation Class UID.
 
std::string implementation_version_name {"PACS_SYSTEM_001"}
 Implementation Version Name.
 
bool accept_unknown_calling_ae {false}
 Accept unknown calling AE titles (when whitelist is non-empty)
 

Detailed Description

Definition at line 45 of file server_config.h.

Constructor & Destructor Documentation

◆ server_config() [1/2]

kcenon::pacs::network::server_config::server_config ( )
default

Default constructor with sensible defaults.

◆ server_config() [2/2]

kcenon::pacs::network::server_config::server_config ( std::string ae,
uint16_t listen_port )
inline

Construct with minimal required parameters.

Parameters
aeAE Title for the server
listen_portPort to listen on

Definition at line 86 of file server_config.h.

87 : ae_title(std::move(ae))
88 , port(listen_port) {}
uint16_t port
Port to listen on (default: 11112, standard alternate DICOM port)
std::string ae_title
Application Entity Title for this server (16 chars max)

Member Data Documentation

◆ accept_unknown_calling_ae

bool kcenon::pacs::network::server_config::accept_unknown_calling_ae {false}

Accept unknown calling AE titles (when whitelist is non-empty)

Definition at line 74 of file server_config.h.

74{false};

Referenced by kcenon::pacs::network::v2::dicom_association_handler::handle_associate_rq(), and kcenon::pacs::network::dicom_server::validate_calling_ae().

◆ ae_title

◆ ae_whitelist

std::vector<std::string> kcenon::pacs::network::server_config::ae_whitelist

◆ association_timeout

std::chrono::seconds kcenon::pacs::network::server_config::association_timeout {30}

Timeout for association negotiation.

Definition at line 62 of file server_config.h.

62{30};

◆ idle_timeout

std::chrono::seconds kcenon::pacs::network::server_config::idle_timeout {300}

◆ implementation_class_uid

std::string kcenon::pacs::network::server_config::implementation_class_uid {"1.2.826.0.1.3680043.2.1545.1"}

◆ implementation_version_name

std::string kcenon::pacs::network::server_config::implementation_version_name {"PACS_SYSTEM_001"}

◆ max_associations

size_t kcenon::pacs::network::server_config::max_associations {20}

◆ max_pdu_size

uint32_t kcenon::pacs::network::server_config::max_pdu_size {DEFAULT_MAX_PDU_LENGTH}

Maximum PDU size for data transfer.

Definition at line 56 of file server_config.h.

constexpr uint32_t DEFAULT_MAX_PDU_LENGTH
Maximum PDU length recommended by DICOM (16384 bytes)
Definition pdu_types.h:276

Referenced by kcenon::pacs::network::v2::dicom_association_handler::handle_associate_rq(), and kcenon::pacs::network::dicom_server::simulate_association_request().

◆ port


The documentation for this struct was generated from the following file: