41 lines
1.1 KiB
C
41 lines
1.1 KiB
C
|
|
#ifndef _DCM_VERIFY_H_
|
||
|
|
#define _DCM_VERIFY_H_
|
||
|
|
|
||
|
|
#include "internal/dcm_global.h"
|
||
|
|
#include "internal/dcm_type.h"
|
||
|
|
#include "internal/dcmtk_headers.h"
|
||
|
|
|
||
|
|
class _DCM_EXPORT dcm_cecho
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
dcm_cecho(const char *peerIp, unsigned long peerPort, const char *peerTitle, const char *ourTitle);
|
||
|
|
~dcm_cecho();
|
||
|
|
|
||
|
|
void set_asce_timeout(int timeout);
|
||
|
|
void set_dimse_timeout(int timeout);
|
||
|
|
void set_max_received_pdu_length(unsigned long length);
|
||
|
|
|
||
|
|
int docecho();
|
||
|
|
|
||
|
|
private:
|
||
|
|
OFCondition echoSCU(T_ASC_Association * assoc, T_DIMSE_BlockingMode block_mode, int dimse_timeout);
|
||
|
|
OFCondition cecho(T_ASC_Association * assoc, unsigned long num_repeat, T_DIMSE_BlockingMode block_mode, int dimse_tiemout);
|
||
|
|
|
||
|
|
private:
|
||
|
|
const char * peerIp_;
|
||
|
|
unsigned long peerPort_;
|
||
|
|
const char * peerTitle_;
|
||
|
|
const char * ourTitle_;
|
||
|
|
unsigned long maxReceivedPDULength;
|
||
|
|
unsigned long repeatCount;
|
||
|
|
bool abortAssociation;
|
||
|
|
unsigned long numXferSyntaxes;
|
||
|
|
unsigned long numPresentationCtx;
|
||
|
|
unsigned long maxXferSyntaxes;
|
||
|
|
int aces_timeout;
|
||
|
|
int socket_tiemout;
|
||
|
|
T_DIMSE_BlockingMode blockMode;
|
||
|
|
int dimse_timeout;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // _DCM_VERIFY_H_
|