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.
Afficher le fichier Open project: jasper-yeh/ClearCanvas Class Usage Examples

Protected Properties

Свойство Type Description
_assoc ClearCanvas.Dicom.Network.AssociationParameters

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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
Résultat void

Abort() public méthode

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
Résultat void

CloseNetwork() protected abstract méthode

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.
Résultat void

GetDimseTimeout() protected méthode

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

InitializeNetwork() protected méthode

protected InitializeNetwork ( Stream network, String name ) : void
network Stream
name String
Résultat void

InitializeNetwork() protected méthode

protected InitializeNetwork ( Stream network, String name, bool multiThreaded ) : void
network Stream
name String
multiThreaded bool
Résultat void

NetworkBase() protected méthode

protected NetworkBase ( ) : System
Résultat System

NetworkHasData() protected abstract méthode

protected abstract NetworkHasData ( ) : bool
Résultat bool

NextMessageID() public méthode

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

OnDimseSent() protected méthode

protected OnDimseSent ( byte pcid, DicomAttributeCollection command, DicomAttributeCollection dataset ) : void
pcid byte
command DicomAttributeCollection
dataset DicomAttributeCollection
Résultat void

OnDimseTimeout() protected méthode

Callback called on a timeout.
protected OnDimseTimeout ( ) : void
Résultat void

OnNetworkError() protected méthode

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

OnReceiveAbort() protected méthode

protected OnReceiveAbort ( DicomAbortSource source, DicomAbortReason reason ) : void
source DicomAbortSource
reason DicomAbortReason
Résultat void

OnReceiveAssociateAccept() protected méthode

protected OnReceiveAssociateAccept ( ClearCanvas.Dicom.Network.AssociationParameters association ) : void
association ClearCanvas.Dicom.Network.AssociationParameters
Résultat void

OnReceiveAssociateReject() protected méthode

protected OnReceiveAssociateReject ( DicomRejectResult result, DicomRejectSource source, DicomRejectReason reason ) : void
result DicomRejectResult
source DicomRejectSource
reason DicomRejectReason
Résultat void

OnReceiveAssociateRequest() protected méthode

protected OnReceiveAssociateRequest ( ClearCanvas.Dicom.Network.ServerAssociationParameters association ) : void
association ClearCanvas.Dicom.Network.ServerAssociationParameters
Résultat void

OnReceiveDimseCommand() protected méthode

protected OnReceiveDimseCommand ( byte pcid, DicomAttributeCollection command ) : void
pcid byte
command DicomAttributeCollection
Résultat void

OnReceiveDimseRequest() protected méthode

protected OnReceiveDimseRequest ( byte pcid, DicomMessage msg ) : void
pcid byte
msg DicomMessage
Résultat void

OnReceiveDimseResponse() protected méthode

protected OnReceiveDimseResponse ( byte pcid, DicomMessage msg ) : void
pcid byte
msg DicomMessage
Résultat void

OnReceiveFileStream() protected méthode

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
Résultat bool

OnReceiveReleaseRequest() protected méthode

protected OnReceiveReleaseRequest ( ) : void
Résultat void

OnReceiveReleaseResponse() protected méthode

protected OnReceiveReleaseResponse ( ) : void
Résultat void

OnUserException() protected méthode

protected OnUserException ( Exception e, String description ) : void
e System.Exception
description String
Résultat void

ResetDimseTimeout() protected méthode

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

SendAssociateAbort() public méthode

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.
Résultat void

SendAssociateAccept() public méthode

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.
Résultat void

SendAssociateReject() public méthode

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

SendAssociateRequest() public méthode

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.
Résultat void

SendCEchoRequest() public méthode

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.
Résultat void

SendCEchoResponse() public méthode

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
Résultat void

SendCFindCancelRequest() public méthode

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
Résultat void

SendCFindRequest() public méthode

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

SendCFindResponse() public méthode

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
Résultat void

SendCMoveCancelRequest() public méthode

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
Résultat void

SendCMoveRequest() public méthode

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
Résultat void

SendCMoveResponse() public méthode

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
Résultat void

SendCMoveResponse() public méthode

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.
Résultat void

SendCMoveResponse() public méthode

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
Résultat void

SendCMoveResponse() public méthode

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.
Résultat void

SendCStoreRequest() public méthode

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
Résultat void

SendCStoreRequest() public méthode

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
Résultat void

SendCStoreRequest() public méthode

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
Résultat void

SendCStoreRequest() public méthode

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
Résultat void

SendCStoreRequest() public méthode

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
Résultat void

SendCStoreResponse() public méthode

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
Résultat void

SendCStoreResponse() public méthode

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.
Résultat void

SendNActionRequest() public méthode

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.
Résultat void

SendNActionResponse() public méthode

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.
Résultat void

SendNCreateRequest() public méthode

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.
Résultat void

SendNCreateRequest() public méthode

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.
Résultat void

SendNCreateResponse() public méthode

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.
Résultat void

SendNDeleteRequest() public méthode

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.
Résultat void

SendNDeleteResponse() public méthode

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.
Résultat void

SendNEventReportResponse() public méthode

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.
Résultat void

SendNGetRequest() public méthode

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.
Résultat void

SendNSetRequest() public méthode

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.
Résultat void

SendNSetResponse() public méthode

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.
Résultat void

SendReleaseRequest() public méthode

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

SendReleaseResponse() protected méthode

Method to send an association release response.
protected SendReleaseResponse ( ) : void
Résultat void

ShutdownNetworkThread() protected méthode

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

Property Details

_assoc protected_oe property

protected AssociationParameters,ClearCanvas.Dicom.Network _assoc
Résultat ClearCanvas.Dicom.Network.AssociationParameters