pynetdicom.pdu.A_RELEASE_RP¶
-
class
pynetdicom.pdu.
A_RELEASE_RP
¶ An A-RELEASE-RP PDU.
An A-RELEASE-RP PDU is used once an association has been established to confirm the release of the association.
-
pdu_length
¶ The number of bytes from the first byte following the PDU Length field to the last byte of the PDU.
- Type
int
-
pdu_type
¶ The PDU Type field value (0x06).
- Type
int
Notes
An A-RELEASE-RP PDU requires the following parameters:
PDU type (1, fixed value, 0x06)
PDU length (1, fixed value, 0x00000004)
Encoding
When encoded, an A-RELEASE-RP PDU has the following structure, taken from Table 9-25 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
4
Reserved
References
-
__init__
()¶ Initialise a new A-RELEASE-RP PDU.
Methods
__init__
()Initialise a new A-RELEASE-RP 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-release (response) primitive.
Return an A-RELEASE (response) primitive from the current PDU.
Attributes
Return the PDU Length field value as an int.
Return the PDU Type field value an int.
-
decode
(bytestream)¶ Decode bytestream and use the result to set the field values of the PDU.
- Parameters
bytestream (bytes) – The PDU data to be decoded.
-
encode
()¶ Return the encoded PDU as bytes.
- Returns
The encoded PDU.
- Return type
bytes
-
static
from_primitive
(primitive)¶ Setup the current PDU using an A-release (response) primitive.
- Parameters
primitive (pdu_primitives.A_RELEASE) – The primitive to use to set the current PDU field values.
-
property
pdu_length
Return the PDU Length field value as an int.
-
property
pdu_type
Return the PDU Type field value an int.
-
static
to_primitive
()¶ Return an A-RELEASE (response) primitive from the current PDU.
- Returns
The primitive representation of the current PDU.
- Return type
-