9 #ifndef _a52696bc_5c6e_402d_a343_6cb085eb0138 10 #define _a52696bc_5c6e_402d_a343_6cb085eb0138 45 ULServiceProviderACSERelatedFunction=2,
46 ULServiceProvderPresentationRelatedFunction=3,
57 ApplicationContextNameNotSupported=2,
58 CallingAETitleNotRecognized=3,
59 CallingAPInvocationIdentifierNotRecognized=4,
60 CallingAEQualifierNotRecognized=5,
61 CallingAEInvocationIdentifierNotRecognized=6,
62 CalledAETitleNotRecognized=7,
63 CalledAPInvocationIdentifierNotRecognized=8,
64 CalledAEQualifierNotRecognized=9,
65 CalledAEInvocationIdentifierNotRecognized=10,
71 TemporaryCongestion=1,
73 CalledPresentationAddressUnknown=3,
74 PresentationProtocolVersionNotSupported=4,
75 NoPresentationServiceAccessPointAvailable=7,
100 std::string
const & get_peer_host()
const;
102 void set_peer_host(std::string
const & host);
105 uint16_t get_peer_port()
const;
107 void set_peer_port(uint16_t port);
127 duration_type get_tcp_timeout()
const;
130 void set_tcp_timeout(duration_type
const & duration);
133 duration_type get_message_timeout()
const;
136 void set_message_timeout(duration_type
const & duration);
144 bool is_associated()
const;
150 void receive_association(
151 boost::asio::ip::tcp
const & protocol,
unsigned short port,
160 void abort(
int source,
int reason);
180 uint16_t next_message_id();
187 std::string _peer_host;
193 std::map<std::string, std::pair<uint8_t, std::string>>
194 _transfer_syntaxes_by_abstract_syntax;
195 std::map<uint8_t, std::string> _transfer_syntaxes_by_id;
197 uint16_t _next_message_id;
229 :
Exception(
"Association aborted"), source(source), reason(reason)
237 #endif // _a52696bc_5c6e_402d_a343_6cb085eb0138 Result
Association result (ITU-T X.227, PS 3.8, 7.1.1.7 and PS 3.8, 9.3.4).
Definition: Association.h:34
Exception reported when receiving a message after the association was released.
Definition: Association.h:204
uint8_t reason
Reason of the error.
Definition: Association.h:225
Exception reported when receiving a message after the association was aborted.
Definition: Association.h:218
TCP transport for the DICOM Upper Layer.
Definition: Transport.h:33
AssociationParameters default_association_acceptor(AssociationParameters const &input)
Default association acceptor.
AssociationAborted(unsigned char source, unsigned char reason)
Constructor.
Definition: Association.h:228
Base class for all DIMSE messages.
Definition: Message.h:76
Definition: Association.h:24
Encapsulate association parameters.
Definition: AssociationParameters.h:26
Diagnostic
Diagnostic of association result.
Definition: Association.h:53
Base class for odil exceptions.
Definition: Exception.h:21
#define ODIL_API
Definition: odil.h:28
ResultSource
Source of association result (PS 3.8, 7.1.1.8 and PS 3.8, 9.3.4).
Definition: Association.h:42
State machine for the DICOM upper layer.
Definition: StateMachine.h:31
Association.
Definition: Association.h:30
boost::asio::deadline_timer::duration_type duration_type
Duration of the timeout.
Definition: StateMachine.h:67
uint8_t source
Source of the error.
Definition: Association.h:222
std::function< AssociationParameters(AssociationParameters const &)> AssociationAcceptor
Callback to check whether the association request is acceptable.
Definition: AssociationAcceptor.h:30
dul::StateMachine::duration_type duration_type
Duration of the timeout.
Definition: Association.h:79
AssociationReleased()
Definition: Association.h:207