32 #include "dcmtk/config/osconfig.h"
33 #include "dcmtk/ofstd/ofconsol.h"
34 #include "dcmtk/dcmdata/dcerror.h"
70 const unsigned short ASCC_BADPRESENTATIONCONTEXTID = 0x101;
71 const unsigned short ASCC_BADPRESENTATIONCONTEXTPOSITION = 0x102;
72 const unsigned short ASCC_CODINGERROR = 0x103;
73 const unsigned short ASCC_DUPLICATEPRESENTATIONCONTEXTID = 0x104;
74 const unsigned short ASCC_MISSINGTRANSFERSYNTAX = 0x105;
75 const unsigned short ASCC_NULLKEY = 0x106;
76 const unsigned short ASCC_SHUTDOWNAPPLICATION = 0x107;
77 const unsigned short ASCC_USERIDENTIFICATIONFAILED = 0x108;
78 const unsigned short ASCC_SCPSCUROLESELECTIONFAILED = 0x109;
81 extern const OFCondition ASC_BADPRESENTATIONCONTEXTID;
85 extern const OFCondition ASC_USERIDENTIFICATIONFAILED;
86 extern const OFCondition ASC_SCPSCUROLESELECTIONFAILED;
89 const unsigned short DIMSEC_BADCOMMANDTYPE = 0x201;
90 const unsigned short DIMSEC_BADDATA = 0x202;
91 const unsigned short DIMSEC_BADMESSAGE = 0x203;
92 const unsigned short DIMSEC_BUILDFAILED = 0x204;
93 const unsigned short DIMSEC_ILLEGALASSOCIATION = 0x205;
94 const unsigned short DIMSEC_INVALIDPRESENTATIONCONTEXTID = 0x206;
95 const unsigned short DIMSEC_NODATAAVAILABLE = 0x207;
96 const unsigned short DIMSEC_NOVALIDPRESENTATIONCONTEXTID = 0x208;
97 const unsigned short DIMSEC_NULLKEY = 0x209;
98 const unsigned short DIMSEC_OUTOFRESOURCES = 0x20a;
99 const unsigned short DIMSEC_PARSEFAILED = 0x20b;
100 const unsigned short DIMSEC_READPDVFAILED = 0x20c;
101 const unsigned short DIMSEC_RECEIVEFAILED = 0x20d;
102 const unsigned short DIMSEC_SENDFAILED = 0x20e;
103 const unsigned short DIMSEC_UNEXPECTEDPDVTYPE = 0x20f;
104 const unsigned short DIMSEC_UNEXPECTEDREQUEST = 0x210;
105 const unsigned short DIMSEC_UNEXPECTEDRESPONSE = 0x211;
106 const unsigned short DIMSEC_UNSUPPORTEDTRANSFERSYNTAX = 0x212;
107 const unsigned short DIMSEC_NODATADICT = 0x213;
115 extern const OFCondition DIMSE_NOVALIDPRESENTATIONCONTEXTID;
126 const unsigned short DULC_ASSOCIATIONREJECTED = 0x301;
127 const unsigned short DULC_CODINGERROR = 0x302;
128 const unsigned short DULC_FSMERROR = 0x303;
129 const unsigned short DULC_ILLEGALACCEPT = 0x304;
130 const unsigned short DULC_ILLEGALKEY = 0x305;
131 const unsigned short DULC_ILLEGALPARAMETER = 0x306;
132 const unsigned short DULC_ILLEGALPDU = 0x307;
133 const unsigned short DULC_ILLEGALPDULENGTH = 0x308;
134 const unsigned short DULC_ILLEGALREJECTREASON = 0x309;
135 const unsigned short DULC_ILLEGALREJECTRESULT = 0x30a;
136 const unsigned short DULC_ILLEGALREQUEST = 0x30b;
137 const unsigned short DULC_ILLEGALSERVICEPARAMETER = 0x30c;
138 const unsigned short DULC_INCORRECTBUFFERLENGTH = 0x30d;
139 const unsigned short DULC_INSUFFICIENTBUFFERLENGTH = 0x30e;
140 const unsigned short DULC_LISTERROR = 0x30f;
141 const unsigned short DULC_NETWORKCLOSED = 0x310;
143 const unsigned short DULC_NOASSOCIATIONREQUEST = 0x312;
144 const unsigned short DULC_NOPDVS = 0x313;
145 const unsigned short DULC_NULLKEY = 0x314;
146 const unsigned short DULC_PCTRANSLATIONFAILURE = 0x315;
147 const unsigned short DULC_PDATAPDUARRIVED = 0x316;
148 const unsigned short DULC_PEERABORTEDASSOCIATION = 0x317;
149 const unsigned short DULC_PEERILLEGALXFERSYNTAXCOUNT = 0x318;
150 const unsigned short DULC_PEERREQUESTEDRELEASE = 0x319;
151 const unsigned short DULC_READTIMEOUT = 0x31a;
152 const unsigned short DULC_REQUESTASSOCIATIONFAILED = 0x31b;
153 const unsigned short DULC_TCPINITERROR = 0x31c;
154 const unsigned short DULC_TCPIOERROR = 0x31d;
155 const unsigned short DULC_TLSERROR = 0x31e;
156 const unsigned short DULC_UNEXPECTEDPDU = 0x31f;
157 const unsigned short DULC_UNKNOWNHOST = 0x320;
158 const unsigned short DULC_UNRECOGNIZEDPDUTYPE = 0x321;
159 const unsigned short DULC_UNSUPPORTEDPEERPROTOCOL = 0x322;
160 const unsigned short DULC_WRONGDATATYPE = 0x323;
161 const unsigned short DULC_TCPWRAPPER = 0x324;
162 const unsigned short DULC_FORKEDCHILD = 0x325;
163 const unsigned short DULC_CANNOTFORK = 0x326;
172 extern const OFCondition DUL_INCORRECTBUFFERLENGTH;
173 extern const OFCondition DUL_INSUFFICIENTBUFFERLENGTH;
181 extern const OFCondition DUL_PEERABORTEDASSOCIATION;
184 extern const OFCondition DUL_REQUESTASSOCIATIONFAILED;
186 extern const OFCondition DUL_UNSUPPORTEDPEERPROTOCOL;
192 #define makeDcmnetCondition(A, B, C) makeOFCondition(OFM_dcmnet, (A), (B), (C))
200 #define makeDcmnetSubCondition(A, B, C, D) DimseCondition::push(OFM_dcmnet, (A), (B), (C), (D))
238 unsigned short aModule,
239 unsigned short aCode,
259 #ifndef OFCONDITION_STRICT_MODE
265 #define SUCCESS(cond) ((cond).good())
268 #define ASC_ASSOCIATIONREJECTED DUL_ASSOCIATIONREJECTED
269 #define ASC_NORMAL EC_Normal
270 #define ASC_PEERABORTEDASSOCIATION DUL_PEERABORTEDASSOCIATION
271 #define ASC_PEERREQUESTEDRELEASE DUL_PEERREQUESTEDRELEASE
272 #define ASC_READTIMEOUT DUL_READTIMEOUT
273 #define DIMSE_NORMAL EC_Normal
274 #define DIMSE_PEERABORTEDASSOCIATION DUL_PEERABORTEDASSOCIATION
275 #define DIMSE_PEERREQUESTEDRELEASE DUL_PEERREQUESTEDRELEASE