DicomReceiver

Contents

DicomReceiver#

class pulserver.proxy.DicomReceiver[source]#

Bases: object

A DICOM storage service: where images go by C-STORE.

Parameters:
  • host – Address of the receiver.

  • port – Address of the receiver.

  • title (str) – Application entity title the receiver answers to.

  • calling (str) – Application entity title the proxy calls as, which the receiver may have to be told to accept.

  • timeout (float) – Seconds the association, and each store, may take.

  • viewer_port (int | None) – Port on the receiver’s host of a viewer that shows each stored image, sent to it as an AVR1 message: the four bytes AVR1, then -1 three times and the file’s length as big-endian 32-bit integers, then the image as a DICOM file. The viewer answers a big-endian 32-bit status, 0 when shown, and a line. None sends nothing.

Methods

show

Send dataset to the viewer at viewer_port; return whether it was shown.

store

Store images over one association; return how many the receiver kept.

Attributes