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

Classes

class  dicom_association_handler
 Bridges network_system sessions with DICOM protocol handling. More...
 
class  dicom_server_v2
 DICOM server using network_system's messaging_server for connection management. More...
 

Typedefs

using association_established_callback
 Callback type for association established events.
 
using association_closed_callback
 Callback type for association closed events.
 
using handler_error_callback
 Callback type for error events.
 

Enumerations

enum class  handler_state {
  idle , awaiting_response , established , releasing ,
  closed
}
 State machine states for the association handler. More...
 

Functions

constexpr const char * to_string (handler_state state) noexcept
 Convert handler_state to string representation.
 

Typedef Documentation

◆ association_closed_callback

Initial value:
std::function<void(const std::string& session_id, bool graceful)>

Callback type for association closed events.

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/network/v2/dicom_association_handler.h.

Definition at line 98 of file dicom_association_handler.h.

◆ association_established_callback

Initial value:
std::function<void(const std::string& session_id,
const std::string& calling_ae,
const std::string& called_ae)>

Callback type for association established events.

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/network/v2/dicom_association_handler.h.

Definition at line 90 of file dicom_association_handler.h.

◆ handler_error_callback

Initial value:
std::function<void(const std::string& session_id, const std::string& error)>

Callback type for error events.

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/network/v2/dicom_association_handler.h.

Definition at line 104 of file dicom_association_handler.h.

Enumeration Type Documentation

◆ handler_state

State machine states for the association handler.

Tracks the progression of a DICOM association from initial connection through negotiation to established communication and eventual release.

Enumerator
idle 

Initial state, waiting for A-ASSOCIATE-RQ.

awaiting_response 

Sent response, awaiting next PDU.

established 

Association established, processing DIMSE.

releasing 

Graceful release in progress.

closed 

Association closed (released or aborted)

Definition at line 59 of file dicom_association_handler.h.

59 {
60 idle,
63 releasing,
64 closed
65};
@ awaiting_response
Sent response, awaiting next PDU.
@ closed
Association closed (released or aborted)
@ releasing
Graceful release in progress.
@ established
Sta6: Association established, ready for DIMSE.
@ idle
Sta1: No TCP connection, waiting for transport.

Function Documentation

◆ to_string()

const char * kcenon::pacs::network::v2::to_string ( handler_state state)
nodiscardconstexprnoexcept

Convert handler_state to string representation.

Parameters
stateThe state to convert
Returns
String representation of the state
Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/network/v2/dicom_association_handler.h.

Definition at line 72 of file dicom_association_handler.h.

72 {
73 switch (state) {
74 case handler_state::idle: return "Idle";
75 case handler_state::awaiting_response: return "Awaiting Response";
76 case handler_state::established: return "Established";
77 case handler_state::releasing: return "Releasing";
78 case handler_state::closed: return "Closed";
79 default: return "Unknown";
80 }
81}

References awaiting_response, closed, established, idle, and releasing.

Referenced by kcenon::pacs::network::v2::dicom_association_handler::process_pdu().

Here is the caller graph for this function: