pynetdicom.pdu.A_ASSOCIATE_RJ¶
- class pynetdicom.pdu.A_ASSOCIATE_RJ[source][source]¶
An A-ASSOCIATE-RJ PDU.
An A-ASSOCIATE-RJ PDU is sent by an association acceptor to indicate that association negotiation has been unsuccessful.
- pdu_length¶
The number of bytes from the first byte following the PDU Length field to the last byte of the PDU.
- Type
Notes
An A-ASSOCIATE-RJ PDU requires the following parameters:
PDU type (1, fixed value, 0x03)
PDU length (1)
Result (1)
Source (1)
Reason/Diagnostic (1)
Encoding
When encoded, an A-ASSOCIATE-RJ PDU has the following structure, taken from Table 9-21 1 (offsets shown with Python indexing). PDUs are always encoded using Big Endian 2.
Offset
Length
Description
0
1
PDU type
1
1
Reserved
2
4
PDU length
6
1
Reserved
7
1
Result
8
1
Source
9
1
Reason/diagnostic
References
Methods
__init__()Initialise a new A-ASSOCIATE-RJ PDU.
decode(bytestream)Decode bytestream and use the result to set the field values of the PDU.
encode()Return the encoded PDU as bytes.
from_primitive(primitive)Setup the current PDU using an A-ASSOCIATE (reject) primitive.
to_primitive()Return an A-ASSOCIATE (reject) primitive from the current PDU.
Attributes
Return the PDU Length field value as an int.
Return the PDU Type field value an int.
reason_strReturn a str describing the Reason/Diagnostic field value.
result_strReturn a str describing the Result field value.
source_strReturn a str describing the Source field value.