Use this interface to build a DICOM Service SCP (Server). More...
Inherits IDispatch.
Public Member Functions | |
HRESULT | WaitForConnection ([in] BSTR ae_title, [in] unsigned short port, [in] int timeout, [out, retval] VARIANT_BOOL *secceeded) |
Listen on a network port and wait for incomming association. More... | |
HRESULT | WaitForCommand ([in] int timeout, [out, retval] VARIANT_BOOL *secceeded) |
Call to recieve the command when an association is opened. More... | |
HRESULT | TakeStoredObject ([out, retval] IDCXOBJ **obj) |
Get the last stored object. More... | |
Properties | |
pVal | StoreDirectory [get] |
Set/Get the root folder where incoming files are saved by default The filename for stored Instances can be set at the end of a C-STORE command when the IDCXACCEvents::OnStoreDone. | |
VARIANT_BOOL | AcceptJpegLosslessStorage [get, set] |
VARIANT_BOOL | AcceptJpegLossyStorage [get, set] |
VARIANT_BOOL | AcceptJpeg2000Storage [get, set] |
short | NextStorageResponseStatus [get, set] |
Set/Get the next or currently active storage response status. More... | |
pVal | AssociationRequestTimeout [get] |
pVal | DimseCommandTimeout [get] |
VARIANT_BOOL | AcceptRLEStorage [get, set] |
IDCXSEC | SecurityContext [get, set] |
VARIANT_BOOL | AcceptPrivateStorageSOPClasses [get, set] |
Use this interface to build a DICOM Service SCP (Server).
This interface provides methods to do many SCP (server) tasks such as recieving DICOM files over a network connection. for an example of using the accepter class see CPPStorageSCPExample.cpp
HRESULT IDCXACC::TakeStoredObject | ( | [out, retval] IDCXOBJ ** | obj | ) |
Get the last stored object.
After this call, the last stored object is reset. Next call to this method will fail. Use this property in the OnStoreDone event of an in memory storage (no filename)
HRESULT IDCXACC::WaitForCommand | ( | [in] int | timeout, |
[out, retval] VARIANT_BOOL * | secceeded | ||
) |
Call to recieve the command when an association is opened.
Waits for an incomming command or until timeout seconds pass.
timeout | Number of seconds to wait for a command |
secceeded | True when a command was successfuly processed |
HRESULT IDCXACC::WaitForConnection | ( | [in] BSTR | ae_title, |
[in] unsigned short | port, | ||
[in] int | timeout, | ||
[out, retval] VARIANT_BOOL * | secceeded | ||
) |
Listen on a network port and wait for incomming association.
Call WaitForConnection in an event loop to implement a Server. This method is usually called from within a while loop. WaitForConnection waits for timeout seconds for an incomming connection.
Events: The following events (callbacks) may be fired by WaitForConnection
ae_title | The AE Title of this application. Callers are expected to use it as 'Called AE Title'. You can verify it by implementing OnConnection |
port | The network port to listen on for incomming connections |
timeout | How many seconds to wait for incomming connection before returning. |
secceeded | True when an association was accepted |
|
getsetproperty |
Enable/Disable Storage SCP association negotiation JPEG 2000 Transfer Syntaxes:
|
getsetproperty |
Enable/Disable Storage SCP association negotiation JPEG Lossless Transfer Syntaxes:
|
getsetproperty |
Enable/Disable Storage SCP association negotiation JPEG (Lossy) Transfer Syntaxes:
|
getsetproperty |
Set/Get Accept Storage of Private SOP Classes Default is false
|
getsetproperty |
Enable/Disable Storage SCP association negotiation RLE Transfer Syntaxes:
|
getproperty |
Association Request Timeout (ARTM) is the time to wait for a response after sending A-ASSOCIATE commands The timeout set here affects only this instance
|
getproperty |
DIMSE Command Timeout is the time to wait for a response after sending a DICOM Message Exchange Command The timeout set here affects only this instance
|
getsetproperty |
Set/Get the next or currently active storage response status.
This propery can be used to override the currently active or the next comming storage command of the active assoication of the accepter. It can be used for teaching or training to simulate error responses.