C# Class ClearCanvas.Dicom.Network.NetworkBase

Class used for DICOM network communications.
The classes DicomClient"/> and DicomServer inherit from this class, to implement network functionality.
显示文件 Open project: jasper-yeh/ClearCanvas Class Usage Examples

Protected Properties

Property Type Description
_assoc ClearCanvas.Dicom.Network.AssociationParameters

Public Methods

Method Description
Abort ( ) : void

Force a shutdown of the DICOM connection.

This routine will force the network connection for the DicomClient or DicomServerto be closed and the background thread for processing the association to shutdown. The routine will block until the shutdown has completed.

Note, for a graceful shutdown the SendAssociateAbort or SendReleaseRequest methods should be called. These routines will gracefully shutdown DICOM connections. The DicomClient.Join() method can then be called to wait for the background thread to clean up.

Abort ( int millisecondTimeout ) : void

Force a shutdown of the DICOM connection.

This routine will force the network connection for the DicomClient or DicomServerto be closed and the background thread for processing the association to shutdown. The routine will block for the number of milliseconds specified by .

Note, for a graceful shutdown the SendAssociateAbort or SendReleaseRequest methods should be called. These routines will gracefully shutdown DICOM connections. The DicomClient.Join() method can then be called to wait for the background thread to clean up.

NextMessageID ( ) : ushort

Returns the next message Id to be used over the association.

SendAssociateAbort ( DicomAbortSource source, DicomAbortReason reason ) : void

Method to send an association abort PDU.

SendAssociateAccept ( ClearCanvas.Dicom.Network.AssociationParameters associate ) : void

Method to send an association accept.

SendAssociateReject ( DicomRejectResult result, DicomRejectSource source, DicomRejectReason reason ) : void

Method to send an association rejection.

SendAssociateRequest ( ClearCanvas.Dicom.Network.AssociationParameters associate ) : void

Method used to send an association request.

SendCEchoRequest ( byte presentationID, ushort messageID ) : void

Method to send a DICOM C-ECHO-RQ message.

SendCEchoResponse ( byte presentationID, ushort messageID, ClearCanvas.Dicom.Network.DicomStatus status ) : void

Method to send a DICOM C-ECHO-RSP message.

SendCFindCancelRequest ( byte presentationId, ushort messageId ) : void

Method to send a DICOM C-CANCEL-FIND-RQ message.

SendCFindRequest ( byte presentationID, ushort messageID, DicomMessage message ) : void

Method to send a DICOM C-FIND-RQ message.

SendCFindResponse ( byte presentationId, ushort messageId, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status ) : void

Method to send a DICOM C-FIND-RSP message.

SendCMoveCancelRequest ( byte presentationID, ushort messageID ) : void

Method to send a DICOM C-CANCEL-MOVE-RQ message.

SendCMoveRequest ( byte presentationId, ushort messageId, string destinationAE, DicomMessage message ) : void

Method to send a DICOM C-MOVE-RQ message.

SendCMoveResponse ( byte presentationID, ushort messageID, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status ) : void

Method to send a DICOM C-MOVE-RSP message.

SendCMoveResponse ( byte presentationID, ushort messageID, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status, string errorComment ) : void

Method to send a DICOM C-MOVE-RSP message.

SendCMoveResponse ( byte presentationID, ushort messageID, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status, ushort numberOfCompletedSubOperations, ushort numberOfRemainingSubOperations, ushort numberOfFailedSubOperations, ushort numberOfWarningSubOperations ) : void

Method to send a DICOM C-MOVE-RSP message.

SendCMoveResponse ( byte presentationID, ushort messageID, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status, ushort numberOfCompletedSubOperations, ushort numberOfRemainingSubOperations, ushort numberOfFailedSubOperations, ushort numberOfWarningSubOperations, string errorComment ) : void

Method to send a DICOM C-MOVE-RSP message.

SendCStoreRequest ( byte presentationID, ushort messageID, DicomPriority priority, DicomMessage message ) : void

Method to send a DICOM C-STORE-RQ message.

SendCStoreRequest ( byte presentationID, ushort messageID, DicomPriority priority, DicomMessage message, ClearCanvas.Dicom.Codec.DicomCodecParameters overrideParameters ) : void

Method to send a DICOM C-STORE-RQ message.

SendCStoreRequest ( byte presentationID, ushort messageID, DicomPriority priority, string moveAE, ushort moveMessageID, DicomMessage message ) : void

Method to send a DICOM C-STORE-RQ message.

SendCStoreRequest ( byte presentationID, ushort messageID, DicomPriority priority, string moveAE, ushort moveMessageID, DicomMessage message, ClearCanvas.Dicom.Codec.DicomCodecParameters overrideParameters ) : void

Method to send a DICOM C-STORE-RQ message.

SendCStoreRequest ( byte presentationID, ushort messageID, DicomPriority priority, string moveAE, ushort moveMessageID, string sopInstanceUid, string sopClassUid, Stream dataSetStream ) : void

Method to send a DICOM C-STORE-RQ message.

SendCStoreResponse ( byte presentationID, ushort messageID, string affectedInstance, ClearCanvas.Dicom.Network.DicomStatus status ) : void

Method to send a DICOM C-STORE-RSP message.

SendCStoreResponse ( byte presentationID, ushort messageID, string affectedInstance, ClearCanvas.Dicom.Network.DicomStatus status, string errorComment ) : void

Method to send a DICOM C-STORE-RSP message.

SendNActionRequest ( byte presentationID, ushort messageID, DicomMessage message ) : void

Sends an N-Action request.

SendNActionResponse ( byte presentationID, ushort messageID, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status ) : void

Sends an N-Action Response.

SendNCreateRequest ( DicomUid affectedSopInstanceUid, byte presentationID, ushort messageID, DicomMessage message ) : void

Sends an N-Create request, affected class is the one associated with the presentationID.

SendNCreateRequest ( DicomUid affectedSopInstanceUid, byte presentationID, ushort messageID, DicomMessage message, DicomUid affectedClass ) : void

Sends an N-Create Request.

SendNCreateResponse ( byte presentationID, ushort messageID, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status ) : void

Sends an N-Create Response.

SendNDeleteRequest ( byte presentationID, ushort messageID, DicomMessage message ) : void

Sends an N-Delete Request.

SendNDeleteResponse ( byte presentationID, ushort messageID, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status ) : void

Sends an N-Delete Response.

SendNEventReportResponse ( byte presentationID, DicomMessage requestMessage, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status ) : void

Sends an N-Event-Report Response.

SendNGetRequest ( DicomUid requestedSopInstanceUid, byte presentationID, ushort messageID, DicomMessage message ) : void

Sends an N-Get request.

SendNSetRequest ( byte presentationID, ushort messageID, DicomMessage message ) : void

Sends an N-Set request.

SendNSetResponse ( byte presentationID, ushort messageID, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status ) : void

Sends an N-Set Response.

SendReleaseRequest ( ) : void

Method to send an association release request. this method can only be used by clients.

Protected Methods

Method Description
CloseNetwork ( int millisecondsTimeout ) : void

Method for closing the network connection.

GetDimseTimeout ( ) : System.DateTime

Return a synchronized version of time for the Dimse Timeout

InitializeNetwork ( Stream network, String name ) : void
InitializeNetwork ( Stream network, String name, bool multiThreaded ) : void
NetworkBase ( ) : System
NetworkHasData ( ) : bool
OnDimseSent ( byte pcid, DicomAttributeCollection command, DicomAttributeCollection dataset ) : void
OnDimseTimeout ( ) : void

Callback called on a timeout.

OnNetworkError ( Exception e, bool closeConnection ) : void

Callback called on a network error.

OnReceiveAbort ( DicomAbortSource source, DicomAbortReason reason ) : void
OnReceiveAssociateAccept ( ClearCanvas.Dicom.Network.AssociationParameters association ) : void
OnReceiveAssociateReject ( DicomRejectResult result, DicomRejectSource source, DicomRejectReason reason ) : void
OnReceiveAssociateRequest ( ClearCanvas.Dicom.Network.ServerAssociationParameters association ) : void
OnReceiveDimseCommand ( byte pcid, DicomAttributeCollection command ) : void
OnReceiveDimseRequest ( byte pcid, DicomMessage msg ) : void
OnReceiveDimseResponse ( byte pcid, DicomMessage msg ) : void
OnReceiveFileStream ( byte pcid, DicomAttributeCollection command, DicomAttributeCollection dataset, byte data, int offset, int count, bool encounteredStopTag, bool isFirst, bool isLast ) : bool
OnReceiveReleaseRequest ( ) : void
OnReceiveReleaseResponse ( ) : void
OnUserException ( Exception e, String description ) : void
ResetDimseTimeout ( ) : void

Method called after network activity to reset the time when a DIMSE timeout will occur.

SendReleaseResponse ( ) : void

Method to send an association release response.

ShutdownNetworkThread ( int millisecondsTimeout ) : void

Method for shutting down the network thread. Should only be called from the CloseNetwork() routine.

Private Methods

Method Description
CreateFileHeader ( byte pcid, DicomAttributeCollection command ) : byte[]
EnqueuePdu ( ClearCanvas.Dicom.Network.RawPDU pdu ) : void

Internal routine for enqueueing a PDU for transfer.

LogSendReceive ( bool receive, DicomAttributeCollection metaInfo, DicomAttributeCollection dataSet ) : void
OnReceiveDimse ( byte pcid, DicomAttributeCollection command, DicomAttributeCollection dataset ) : bool
ProcessNextPDU ( ) : bool
ProcessPDataTF ( ClearCanvas.Dicom.Network.PDataTFRead pdu ) : bool
ProcessRawPDU ( ClearCanvas.Dicom.Network.RawPDU raw ) : bool
RunProcess ( ) : void

Main processing routine for processing a network connection.

RunRead ( ) : void

Main processing routine for processing a network connection.

RunWrite ( ) : void

Main processing routine for processing a network connection.

SendDimse ( byte pcid, DicomAttributeCollection command, DicomAttributeCollection dataset ) : void

Method for sending a DIMSE mesage.

SendDimseDataSetStream ( byte pcid, DicomAttributeCollection command, Stream dataset ) : void

Method for sending a DIMSE mesage.

SendNCreateNSetNDeleteHelper ( DicomCommandField commandField, byte presentationId, ushort messageId, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status ) : void

Helper for sending N-Create, N-Set, and N-Delete Response messages.

SendRawPDU ( ClearCanvas.Dicom.Network.RawPDU pdu ) : void

Method Details

Abort() public method

Force a shutdown of the DICOM connection.

This routine will force the network connection for the DicomClient or DicomServerto be closed and the background thread for processing the association to shutdown. The routine will block until the shutdown has completed.

Note, for a graceful shutdown the SendAssociateAbort or SendReleaseRequest methods should be called. These routines will gracefully shutdown DICOM connections. The DicomClient.Join() method can then be called to wait for the background thread to clean up.

public Abort ( ) : void
return void

Abort() public method

Force a shutdown of the DICOM connection.

This routine will force the network connection for the DicomClient or DicomServerto be closed and the background thread for processing the association to shutdown. The routine will block for the number of milliseconds specified by .

Note, for a graceful shutdown the SendAssociateAbort or SendReleaseRequest methods should be called. These routines will gracefully shutdown DICOM connections. The DicomClient.Join() method can then be called to wait for the background thread to clean up.

public Abort ( int millisecondTimeout ) : void
millisecondTimeout int
return void

CloseNetwork() protected abstract method

Method for closing the network connection.
protected abstract CloseNetwork ( int millisecondsTimeout ) : void
millisecondsTimeout int The timeout in milliseconds to wait for the closure /// of the network.
return void

GetDimseTimeout() protected method

Return a synchronized version of time for the Dimse Timeout
protected GetDimseTimeout ( ) : System.DateTime
return System.DateTime

InitializeNetwork() protected method

protected InitializeNetwork ( Stream network, String name ) : void
network Stream
name String
return void

InitializeNetwork() protected method

protected InitializeNetwork ( Stream network, String name, bool multiThreaded ) : void
network Stream
name String
multiThreaded bool
return void

NetworkBase() protected method

protected NetworkBase ( ) : System
return System

NetworkHasData() protected abstract method

protected abstract NetworkHasData ( ) : bool
return bool

NextMessageID() public method

Returns the next message Id to be used over the association.
public NextMessageID ( ) : ushort
return ushort

OnDimseSent() protected method

protected OnDimseSent ( byte pcid, DicomAttributeCollection command, DicomAttributeCollection dataset ) : void
pcid byte
command DicomAttributeCollection
dataset DicomAttributeCollection
return void

OnDimseTimeout() protected method

Callback called on a timeout.
protected OnDimseTimeout ( ) : void
return void

OnNetworkError() protected method

Callback called on a network error.
protected OnNetworkError ( Exception e, bool closeConnection ) : void
e System.Exception
closeConnection bool
return void

OnReceiveAbort() protected method

protected OnReceiveAbort ( DicomAbortSource source, DicomAbortReason reason ) : void
source DicomAbortSource
reason DicomAbortReason
return void

OnReceiveAssociateAccept() protected method

protected OnReceiveAssociateAccept ( ClearCanvas.Dicom.Network.AssociationParameters association ) : void
association ClearCanvas.Dicom.Network.AssociationParameters
return void

OnReceiveAssociateReject() protected method

protected OnReceiveAssociateReject ( DicomRejectResult result, DicomRejectSource source, DicomRejectReason reason ) : void
result DicomRejectResult
source DicomRejectSource
reason DicomRejectReason
return void

OnReceiveAssociateRequest() protected method

protected OnReceiveAssociateRequest ( ClearCanvas.Dicom.Network.ServerAssociationParameters association ) : void
association ClearCanvas.Dicom.Network.ServerAssociationParameters
return void

OnReceiveDimseCommand() protected method

protected OnReceiveDimseCommand ( byte pcid, DicomAttributeCollection command ) : void
pcid byte
command DicomAttributeCollection
return void

OnReceiveDimseRequest() protected method

protected OnReceiveDimseRequest ( byte pcid, DicomMessage msg ) : void
pcid byte
msg DicomMessage
return void

OnReceiveDimseResponse() protected method

protected OnReceiveDimseResponse ( byte pcid, DicomMessage msg ) : void
pcid byte
msg DicomMessage
return void

OnReceiveFileStream() protected method

protected OnReceiveFileStream ( byte pcid, DicomAttributeCollection command, DicomAttributeCollection dataset, byte data, int offset, int count, bool encounteredStopTag, bool isFirst, bool isLast ) : bool
pcid byte
command DicomAttributeCollection
dataset DicomAttributeCollection
data byte
offset int
count int
encounteredStopTag bool
isFirst bool
isLast bool
return bool

OnReceiveReleaseRequest() protected method

protected OnReceiveReleaseRequest ( ) : void
return void

OnReceiveReleaseResponse() protected method

protected OnReceiveReleaseResponse ( ) : void
return void

OnUserException() protected method

protected OnUserException ( Exception e, String description ) : void
e System.Exception
description String
return void

ResetDimseTimeout() protected method

Method called after network activity to reset the time when a DIMSE timeout will occur.
protected ResetDimseTimeout ( ) : void
return void

SendAssociateAbort() public method

Method to send an association abort PDU.
public SendAssociateAbort ( DicomAbortSource source, DicomAbortReason reason ) : void
source DicomAbortSource The source of the abort.
reason DicomAbortReason The reason for the abort.
return void

SendAssociateAccept() public method

Method to send an association accept.
public SendAssociateAccept ( ClearCanvas.Dicom.Network.AssociationParameters associate ) : void
associate ClearCanvas.Dicom.Network.AssociationParameters The parameters to use for the association accept.
return void

SendAssociateReject() public method

Method to send an association rejection.
public SendAssociateReject ( DicomRejectResult result, DicomRejectSource source, DicomRejectReason reason ) : void
result DicomRejectResult The
source DicomRejectSource
reason DicomRejectReason
return void

SendAssociateRequest() public method

Method used to send an association request.
public SendAssociateRequest ( ClearCanvas.Dicom.Network.AssociationParameters associate ) : void
associate ClearCanvas.Dicom.Network.AssociationParameters The parameters used in the association request.
return void

SendCEchoRequest() public method

Method to send a DICOM C-ECHO-RQ message.
public SendCEchoRequest ( byte presentationID, ushort messageID ) : void
presentationID byte The presentation context to send the request on.
messageID ushort The messageID to use.
return void

SendCEchoResponse() public method

Method to send a DICOM C-ECHO-RSP message.
public SendCEchoResponse ( byte presentationID, ushort messageID, ClearCanvas.Dicom.Network.DicomStatus status ) : void
presentationID byte
messageID ushort
status ClearCanvas.Dicom.Network.DicomStatus
return void

SendCFindCancelRequest() public method

Method to send a DICOM C-CANCEL-FIND-RQ message.
public SendCFindCancelRequest ( byte presentationId, ushort messageId ) : void
presentationId byte
messageId ushort The message ID of the original C-FIND-RQ that is being canceled
return void

SendCFindRequest() public method

Method to send a DICOM C-FIND-RQ message.
public SendCFindRequest ( byte presentationID, ushort messageID, DicomMessage message ) : void
presentationID byte
messageID ushort
message DicomMessage
return void

SendCFindResponse() public method

Method to send a DICOM C-FIND-RSP message.
public SendCFindResponse ( byte presentationId, ushort messageId, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status ) : void
presentationId byte
messageId ushort
message DicomMessage
status ClearCanvas.Dicom.Network.DicomStatus
return void

SendCMoveCancelRequest() public method

Method to send a DICOM C-CANCEL-MOVE-RQ message.
public SendCMoveCancelRequest ( byte presentationID, ushort messageID ) : void
presentationID byte
messageID ushort The message ID of the original C-MOVE-RQ that is being canceled
return void

SendCMoveRequest() public method

Method to send a DICOM C-MOVE-RQ message.
public SendCMoveRequest ( byte presentationId, ushort messageId, string destinationAE, DicomMessage message ) : void
presentationId byte
messageId ushort
destinationAE string
message DicomMessage
return void

SendCMoveResponse() public method

Method to send a DICOM C-MOVE-RSP message.
public SendCMoveResponse ( byte presentationID, ushort messageID, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status ) : void
presentationID byte
messageID ushort
message DicomMessage
status ClearCanvas.Dicom.Network.DicomStatus
return void

SendCMoveResponse() public method

Method to send a DICOM C-MOVE-RSP message.
public SendCMoveResponse ( byte presentationID, ushort messageID, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status, string errorComment ) : void
presentationID byte
messageID ushort
message DicomMessage
status ClearCanvas.Dicom.Network.DicomStatus
errorComment string An extended textual error comment. The comment will be truncated to 64 characters.
return void

SendCMoveResponse() public method

Method to send a DICOM C-MOVE-RSP message.
public SendCMoveResponse ( byte presentationID, ushort messageID, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status, ushort numberOfCompletedSubOperations, ushort numberOfRemainingSubOperations, ushort numberOfFailedSubOperations, ushort numberOfWarningSubOperations ) : void
presentationID byte
messageID ushort
message DicomMessage
status ClearCanvas.Dicom.Network.DicomStatus
numberOfCompletedSubOperations ushort
numberOfRemainingSubOperations ushort
numberOfFailedSubOperations ushort
numberOfWarningSubOperations ushort
return void

SendCMoveResponse() public method

Method to send a DICOM C-MOVE-RSP message.
public SendCMoveResponse ( byte presentationID, ushort messageID, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status, ushort numberOfCompletedSubOperations, ushort numberOfRemainingSubOperations, ushort numberOfFailedSubOperations, ushort numberOfWarningSubOperations, string errorComment ) : void
presentationID byte
messageID ushort
message DicomMessage
status ClearCanvas.Dicom.Network.DicomStatus
numberOfCompletedSubOperations ushort
numberOfRemainingSubOperations ushort
numberOfFailedSubOperations ushort
numberOfWarningSubOperations ushort
errorComment string An extended textual error comment. The comment will be truncated to 64 characters.
return void

SendCStoreRequest() public method

Method to send a DICOM C-STORE-RQ message.
public SendCStoreRequest ( byte presentationID, ushort messageID, DicomPriority priority, DicomMessage message ) : void
presentationID byte
messageID ushort
priority DicomPriority
message DicomMessage
return void

SendCStoreRequest() public method

Method to send a DICOM C-STORE-RQ message.
public SendCStoreRequest ( byte presentationID, ushort messageID, DicomPriority priority, DicomMessage message, ClearCanvas.Dicom.Codec.DicomCodecParameters overrideParameters ) : void
presentationID byte
messageID ushort
priority DicomPriority
message DicomMessage
overrideParameters ClearCanvas.Dicom.Codec.DicomCodecParameters
return void

SendCStoreRequest() public method

Method to send a DICOM C-STORE-RQ message.
public SendCStoreRequest ( byte presentationID, ushort messageID, DicomPriority priority, string moveAE, ushort moveMessageID, DicomMessage message ) : void
presentationID byte
messageID ushort
priority DicomPriority
moveAE string
moveMessageID ushort
message DicomMessage
return void

SendCStoreRequest() public method

Method to send a DICOM C-STORE-RQ message.
public SendCStoreRequest ( byte presentationID, ushort messageID, DicomPriority priority, string moveAE, ushort moveMessageID, DicomMessage message, ClearCanvas.Dicom.Codec.DicomCodecParameters overrideParameters ) : void
presentationID byte
messageID ushort
priority DicomPriority
moveAE string
moveMessageID ushort
message DicomMessage
overrideParameters ClearCanvas.Dicom.Codec.DicomCodecParameters
return void

SendCStoreRequest() public method

Method to send a DICOM C-STORE-RQ message.
public SendCStoreRequest ( byte presentationID, ushort messageID, DicomPriority priority, string moveAE, ushort moveMessageID, string sopInstanceUid, string sopClassUid, Stream dataSetStream ) : void
presentationID byte
messageID ushort
priority DicomPriority
moveAE string
moveMessageID ushort
sopInstanceUid string
sopClassUid string
dataSetStream Stream
return void

SendCStoreResponse() public method

Method to send a DICOM C-STORE-RSP message.
public SendCStoreResponse ( byte presentationID, ushort messageID, string affectedInstance, ClearCanvas.Dicom.Network.DicomStatus status ) : void
presentationID byte
messageID ushort
affectedInstance string
status ClearCanvas.Dicom.Network.DicomStatus
return void

SendCStoreResponse() public method

Method to send a DICOM C-STORE-RSP message.
public SendCStoreResponse ( byte presentationID, ushort messageID, string affectedInstance, ClearCanvas.Dicom.Network.DicomStatus status, string errorComment ) : void
presentationID byte
messageID ushort
affectedInstance string
status ClearCanvas.Dicom.Network.DicomStatus
errorComment string An extended textual error comment on failure. The comment will be truncated to 64 characters.
return void

SendNActionRequest() public method

Sends an N-Action request.
public SendNActionRequest ( byte presentationID, ushort messageID, DicomMessage message ) : void
presentationID byte The presentation ID to send the request message on.
messageID ushort The message ID.
message DicomMessage The message.
return void

SendNActionResponse() public method

Sends an N-Action Response.
public SendNActionResponse ( byte presentationID, ushort messageID, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status ) : void
presentationID byte The presentation context ID to send the response message on.
messageID ushort The message ID of the message responding to.
message DicomMessage The response message to send.
status ClearCanvas.Dicom.Network.DicomStatus The status to set in the response message.
return void

SendNCreateRequest() public method

Sends an N-Create request, affected class is the one associated with the presentationID.
public SendNCreateRequest ( DicomUid affectedSopInstanceUid, byte presentationID, ushort messageID, DicomMessage message ) : void
affectedSopInstanceUid DicomUid The affected sop instance uid.
presentationID byte The presentation ID.
messageID ushort The message ID.
message DicomMessage The message.
return void

SendNCreateRequest() public method

Sends an N-Create Request.
public SendNCreateRequest ( DicomUid affectedSopInstanceUid, byte presentationID, ushort messageID, DicomMessage message, DicomUid affectedClass ) : void
affectedSopInstanceUid DicomUid The affected sop instance uid.
presentationID byte The presentation ID.
messageID ushort The message ID.
message DicomMessage The message.
affectedClass DicomUid The affected class.
return void

SendNCreateResponse() public method

Sends an N-Create Response.
public SendNCreateResponse ( byte presentationID, ushort messageID, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status ) : void
presentationID byte The presentation context ID
messageID ushort The MessageID being responsed to.
message DicomMessage The response message to send.
status ClearCanvas.Dicom.Network.DicomStatus The status to send.
return void

SendNDeleteRequest() public method

Sends an N-Delete Request.
public SendNDeleteRequest ( byte presentationID, ushort messageID, DicomMessage message ) : void
presentationID byte The presentation ID.
messageID ushort The message ID.
message DicomMessage The message.
return void

SendNDeleteResponse() public method

Sends an N-Delete Response.
public SendNDeleteResponse ( byte presentationID, ushort messageID, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status ) : void
presentationID byte The presentation context ID to send the response message on.
messageID ushort The message ID of the request message being responded to.
message DicomMessage The response message to send.
status ClearCanvas.Dicom.Network.DicomStatus The status to send in the response message.
return void

SendNEventReportResponse() public method

Sends an N-Event-Report Response.
public SendNEventReportResponse ( byte presentationID, DicomMessage requestMessage, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status ) : void
presentationID byte The presentation context ID
requestMessage DicomMessage The message being responsed to.
message DicomMessage The response message to send.
status ClearCanvas.Dicom.Network.DicomStatus The status to send.
return void

SendNGetRequest() public method

Sends an N-Get request.
public SendNGetRequest ( DicomUid requestedSopInstanceUid, byte presentationID, ushort messageID, DicomMessage message ) : void
requestedSopInstanceUid DicomUid The requested sop instance uid.
presentationID byte The presentation ID.
messageID ushort The message ID.
message DicomMessage The message.
return void

SendNSetRequest() public method

Sends an N-Set request.
public SendNSetRequest ( byte presentationID, ushort messageID, DicomMessage message ) : void
presentationID byte The presentation context ID to send the request over.
messageID ushort The message ID.
message DicomMessage The message.
return void

SendNSetResponse() public method

Sends an N-Set Response.
public SendNSetResponse ( byte presentationID, ushort messageID, DicomMessage message, ClearCanvas.Dicom.Network.DicomStatus status ) : void
presentationID byte The presentation context ID to send th response over.
messageID ushort The message ID.
message DicomMessage The response message to send.
status ClearCanvas.Dicom.Network.DicomStatus The status to set in the response message.
return void

SendReleaseRequest() public method

Method to send an association release request. this method can only be used by clients.
public SendReleaseRequest ( ) : void
return void

SendReleaseResponse() protected method

Method to send an association release response.
protected SendReleaseResponse ( ) : void
return void

ShutdownNetworkThread() protected method

Method for shutting down the network thread. Should only be called from the CloseNetwork() routine.
protected ShutdownNetworkThread ( int millisecondsTimeout ) : void
millisecondsTimeout int
return void

Property Details

_assoc protected_oe property

protected AssociationParameters,ClearCanvas.Dicom.Network _assoc
return ClearCanvas.Dicom.Network.AssociationParameters