pynetdicom.pdu_primitives.MaximumLengthNotification¶
- class pynetdicom.pdu_primitives.MaximumLengthNotification[source]¶
A representation of a Maximum Length Negotiation primitive.
The maximum length notification allows communicating AEs to limit the size of the data for each P-DATA indication. This notification is required for all DICOM v3.0 conforming implementations.
This User Information item is required during association negotiation and there must only be a single
MaximumLengthNotification
item.References
DICOM Standard, Part 7, Annex D.3.3.1
DICOM Standard, Part 8, Annex D.1
Methods
__init__
()Convert the primitive to a PDU item ready to be encoded.
Attributes
Get or set the Maximum Length Received using
int
.- from_primitive() MaximumLengthSubItem [source]¶
Convert the primitive to a PDU item ready to be encoded.
- Returns:
item
- Return type:
- property maximum_length_received: int¶
Get or set the Maximum Length Received using
int
.- Parameters:
val (int) – The maximum length of each P-DATA in bytes, must be equal to or greater than 0. A value of
0
indicates unlimited length (31682
bytes default).- Raises:
ValueError – If maximum_length_received is negative
TypeError – If maximum_length_received is not an int