pynetdicom.dul.DULServiceProvider¶
- class pynetdicom.dul.DULServiceProvider(assoc)[source][source]¶
The DICOM Upper Layer Service Provider.
- artim_timer¶
The ARTIM timer
- Type
- socket¶
A wrapped socket.socket object used to communicate with the peer.
- to_provider_queue¶
Queue of PDUs from the DUL service user to be processed by the DUL provider
- Type
- to_user_queue¶
Queue of primitives from the DUL service to be processed by the DUL user
- Type
- event_queue¶
List of queued events to be processed by the state machine
- Type
- state_machine¶
The DICOM Upper Layer’s State Machine
- Type
- __init__(assoc)[source][source]¶
- Parameters
assoc (association.Association) – The DUL’s parent Association instance.
Methods
__init__(assoc)- param assoc
The DUL's parent Association instance.
getName()idle_timer_expired()Checks if the idle timer has expired
isAlive()Return whether the thread is alive.
isDaemon()is_alive()Return whether the thread is alive.
join([timeout])Wait until the thread terminates.
kill_dul()Immediately interrupts the thread
peek_next_pdu()Check the next PDU to be processed.
receive_pdu([wait, timeout])Return an item from the queue if one is available.
run()The main threading.Thread run loop.
send_pdu(primitive)Place a primitive in the provider queue to be sent to the peer.
setDaemon(daemonic)setName(name)start()Start the thread's activity.
stop_dul()Interrupts the thread if state is "Sta1"
Attributes
assocReturn the Association we are providing DUL services for.
daemonA boolean value indicating whether this thread is a daemon thread.
identThread identifier of this thread or None if it has not been started.
nameA string used for identification purposes only.
network_timeoutReturn the network_timeout.