DVTk API
SendAssociateRp Method (transferSyntaxesList)
DVTkDvtkHighLevelInterface.Dicom.ThreadsMessageHandlerSendAssociateRp(array<TransferSyntaxes>[]()[])
DVTk API

[This is preliminary documentation and is subject to change.]

Sends an A-ASSOCIATE-AC or A-ASSOCIATE-RJ based on the previously received A-ASSOCIATE-RQ.
Declaration Syntax
C#Visual BasicVisual C++
protected DulMessage SendAssociateRp(
	params TransferSyntaxes[] transferSyntaxesList
)
Protected Function SendAssociateRp ( _
	ParamArray transferSyntaxesList As TransferSyntaxes() _
) As DulMessage
protected:
DulMessage^ SendAssociateRp(
	... array<TransferSyntaxes^>^ transferSyntaxesList
)
Parameters
transferSyntaxesList (array< TransferSyntaxes >[]()[])
The transfer syntaxes to accept.
Return Value
The sent AssociateAc or AssociateRj.
Remarks
This method will send an A-ASSOCIATE-AC if at least one presentation context will be accepted according to the rules specified below. Otherwise an A-ASSOCIATE-RJ will be sent.

The following holds for the presentation contexts in the A-ASSOCIATE-AC:
- For each requested presentation contex, do the following:
1)
Check if one or more of the requested transfer syntaxes is present in the first supplied TransferSyntaxes instance. If this is the case, use the requested transfer syntax that is requested before the other ones in the accepted presentation context counterpart (has result field 0).
2)
If no requested transfer syntaxes was present, try this with the second supplied TransferSyntaxes instance.
3) If no requested transfer syntaxes was present is in any supplied TransferSyntaxes instance, reject the presentation context with result 4.

Note that a difference exists between supplying one TransferSyntaxes instance with all transfer syntaxes to accept and supplying multiple TransferSyntaxes instances each containing only one transfer syntax. In the first case, the preference (order of proposed transfer syntaxes) of the SCU will be used, in the second case the preference of the caller of this method will be used.
Exceptions
ExceptionCondition
Exception Last received message is not an A-ASSOCIATE-RQ or no message has been received at all.

Assembly: DvtkHighLevelInterface (Module: DvtkHighLevelInterface) Version: 0.0.0.0