⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 assoc.h

📁 转化为DIB位图再显示出来的dicom文件C++代码
💻 H
📖 第 1 页 / 共 2 页
字号:
OFCondition ASC_getApplicationContextName(    T_ASC_Parameters * params,    char* applicationContextName);OFCondition ASC_setPresentationAddresses(    T_ASC_Parameters * params,    const char* callingPresentationAddress,    const char* calledPresentationAddress);OFCondition ASC_getPresentationAddresses(    T_ASC_Parameters * params,    char* callingPresentationAddress,    char* calledPresentationAddress);OFCondition ASC_getRejectParameters(    T_ASC_Parameters * params,    T_ASC_RejectParameters * rejectParameters);void ASC_printRejectParameters(    FILE *f,     T_ASC_RejectParameters *rej);void ASC_printRejectParameters(    ostream &out,     T_ASC_RejectParameters *rej);OFCondition ASC_addPresentationContext(    T_ASC_Parameters * params,    T_ASC_PresentationContextID presentationContextID,    const char* abstractSyntax,    const char* transferSyntaxList[],    int transferSyntaxListCount,    T_ASC_SC_ROLE proposedRole = ASC_SC_ROLE_DEFAULT);int ASC_countPresentationContexts(    T_ASC_Parameters * params);int ASC_countAcceptedPresentationContexts(    T_ASC_Parameters * params);OFCondition ASC_getPresentationContext(    T_ASC_Parameters * params,    int listPosition,    T_ASC_PresentationContext * presentationContext);OFCondition ASC_acceptPresentationContext(    T_ASC_Parameters * params,    T_ASC_PresentationContextID presentationContextID,    const char* transferSyntax,    T_ASC_SC_ROLE acceptedRole = ASC_SC_ROLE_DEFAULT);OFConditionASC_acceptContextsWithPreferredTransferSyntaxes(    T_ASC_Parameters * params,    const char* abstractSyntaxes[], int abstractSyntaxCount,    const char* transferSyntaxes[], int transferSyntaxCount,    T_ASC_SC_ROLE acceptedRole = ASC_SC_ROLE_DEFAULT);OFConditionASC_acceptContextsWithTransferSyntax(    T_ASC_Parameters * params,    const char* transferSyntax, int abstractSyntaxCount,    const char* abstractSyntaxes[],    T_ASC_SC_ROLE acceptedRole = ASC_SC_ROLE_DEFAULT);OFCondition ASC_refusePresentationContext(    T_ASC_Parameters * params,    T_ASC_PresentationContextID presentationContextID,    T_ASC_P_ResultReason resultReason);OFConditionASC_findAcceptedPresentationContext(    T_ASC_Parameters * params,    T_ASC_PresentationContextID presentationContextID,    T_ASC_PresentationContext * presentationContext);T_ASC_PresentationContextIDASC_findAcceptedPresentationContextID(    T_ASC_Association *assoc,    const char* abstractSyntax);T_ASC_PresentationContextIDASC_findAcceptedPresentationContextID(    T_ASC_Association *assoc,    const char* abstractSyntax,    const char * transferSyntax);/* extended negotiation */void ASC_getRequestedExtNegList(T_ASC_Parameters* params, SOPClassExtendedNegotiationSubItemList** extNegList);void ASC_getAcceptedExtNegList(T_ASC_Parameters* params, SOPClassExtendedNegotiationSubItemList** extNegList);void ASC_setRequestedExtNegList(T_ASC_Parameters* params, SOPClassExtendedNegotiationSubItemList* extNegList);void ASC_setAcceptedExtNegList(T_ASC_Parameters* params, SOPClassExtendedNegotiationSubItemList* extNegList);/* get peer certificate from open association */unsigned long ASC_getPeerCertificateLength(T_ASC_Association *assoc);unsigned long ASC_getPeerCertificate(T_ASC_Association *assoc, void *buf, unsigned long bufLen);/* set new transport layer object */OFConditionASC_setTransportLayer(T_ASC_Network *network, DcmTransportLayer *newLayer, int takeoverOwnership);void ASC_dumpParameters(T_ASC_Parameters * params, ostream& outstream);void ASC_dumpPresentationContext(T_ASC_PresentationContext * presentationContext, ostream& outstream);voidASC_dumpConnectionParameters(T_ASC_Association *association, ostream& outstream);void ASC_activateCallback(T_ASC_Parameters *params, DUL_ModeCallback *cb);/* * Association Inquiries */OFBoolASC_associationWaiting(T_ASC_Network * network, int timeout);OFBoolASC_dataWaiting(T_ASC_Association * association, int timeout);OFBoolASC_selectReadableAssociation(    T_ASC_Association* assocs[],     int assocCount, int timeout);/* * Association Messages */OFCondition ASC_requestAssociation(    T_ASC_Network * network,    T_ASC_Parameters * params,	/* params will be saved				 * in the association				 * structure */    T_ASC_Association ** association,    void **associatePDU=NULL,    unsigned long *associatePDUlength=NULL);OFCondition ASC_receiveAssociation(    T_ASC_Network * network,    T_ASC_Association ** association,    long maxReceivePDUSize,    void **associatePDU=NULL,    unsigned long *associatePDUlength=NULL,    OFBool useSecureLayer=OFFalse,    DUL_BLOCKOPTIONS block=DUL_BLOCK,    int timeout=0);OFConditionASC_acknowledgeAssociation(    T_ASC_Association * assoc,    void **associatePDU=NULL,    unsigned long *associatePDUlength=NULL);OFConditionASC_rejectAssociation(    T_ASC_Association * association,    T_ASC_RejectParameters * rejectParameters,    void **associatePDU=NULL,    unsigned long *associatePDUlength=NULL);OFCondition ASC_releaseAssociation(T_ASC_Association * association);OFCondition ASC_acknowledgeRelease(T_ASC_Association * association);OFCondition ASC_abortAssociation(T_ASC_Association * association);OFCondition ASC_dropSCPAssociation(T_ASC_Association * association, int timeout = DUL_TIMEOUT);OFCondition ASC_dropAssociation(T_ASC_Association * association);OFCondition ASC_destroyAssociation(T_ASC_Association ** association);#endif/*** CVS Log** $Log: assoc.h,v $** Revision 1.24  2005/12/08 16:02:06  meichel** Changed include path schema for all DCMTK header files**** Revision 1.23  2004/07/15 08:10:45  meichel** Added optional timeout parameter to ASC_dropSCPAssociation().**** Revision 1.22  2004/04/07 10:22:09  meichel** Added optional parameter to ASC_initializeNetwork that allows to pass**   the DUL_FULLDOMAINNAME option to the DUL layer**** Revision 1.21  2004/02/25 12:31:15  meichel** Added global option flag for compatibility with very old DCMTK releases in the**   DICOM upper layer and ACSE code. Default is automatic handling, which should**   work in most cases.**** Revision 1.20  2003/06/10 13:42:07  meichel** Replaced unnamed C style structs by C++ declarations**** Revision 1.19  2002/07/10 11:43:55  meichel** Replaced dcmnet specific definitions for implementation class UID and**   version name by the constants defined in dcmdata.**** Revision 1.18  2001/11/27 09:54:33  wilkens** Updated storescp. 6 new options (--output-directory, --sort-conc-studies,** --exec-on-reception, --exec-on-eostudy, --rename-on-eostudy, and** --eostudy-timeout) implemented (requirements from GO-Kard).**** Revision 1.17  2001/10/12 10:18:25  meichel** Replaced the CONDITION types, constants and functions in the dcmnet module**   by an OFCondition based implementation which eliminates the global condition**   stack.  This is a major change, caveat emptor!**** Revision 1.16  2001/09/28 13:23:46  joergr** Added forward declaration of "ostream" to keep gcc 3.0 quiet.**** Revision 1.15  2000/10/10 12:06:05  meichel** Added version of function ASC_printRejectParameters that takes**   an ostream& instead of a FILE***** Revision 1.14  2000/08/10 14:50:52  meichel** Added initial OpenSSL support.**** Revision 1.13  2000/06/07 13:56:20  meichel** Output stream now passed as mandatory parameter to ASC_dumpParameters.**** Revision 1.12  2000/06/07 08:57:21  meichel** dcmnet ACSE routines now allow to retrieve a binary copy of the A-ASSOCIATE**   RQ/AC/RJ PDUs, e.g. for logging purposes.**** Revision 1.11  2000/05/30 13:07:41  joergr** Added a condition value to report the external request for a shutdown of** the application (used for imagectn).**** Revision 1.10  1999/09/06 13:28:31  meichel** Enhanced max receive PDU range to 4-128K.**** Revision 1.9  1999/04/26 17:20:55  meichel** Added new "transfer syntax aware" variant of the dcmnet function**   ASC_findAcceptedPresentationContextID. This variant tries to find an**   accepted presentation context that matches both abstract and transfer syntax.**** Revision 1.8  1999/04/21 13:01:23  meichel** Increased max. number of transfer syntaxes that**   can be managed in an A-ASSOCIATE packet from 25 to 50.**** Revision 1.7  1999/04/19 08:39:27  meichel** Added experimental support for extended SOP class negotiation.**** Revision 1.6  1997/08/05 07:38:08  andreas** Corrected error in DUL finite state machine** SCPs shall close sockets after the SCU have closed the socket in** a normal association release. Therfore, an ARTIM timer is described** in DICOM part 8 that is not implemented correctly in the** DUL. Since the whole DUL finite state machine is affected, we** decided to solve the proble outside the fsm. Now it is necessary to call the** ASC_DropSCPAssociation() after the calling ASC_acknowledgeRelease().**** Revision 1.5  1997/07/21 08:40:08  andreas** - Replace all boolean types (BOOLEAN, CTNBOOLEAN, DICOM_BOOL, BOOL)**   with one unique boolean type OFBool.**** Revision 1.4  1997/05/05 13:05:53  meichel** Removed unused constant DICOM_MAXPRESENTATIONCONTEXTS.**** Revision 1.3  1997/05/05 10:30:08  meichel** Fixed bugs related to association negotiation in the DICOM upper layer module.** Added application tests/assctest.cc to examine handling of large A-ASSOCIATE** PDUs. See CHANGES file for details.**** Revision 1.2  1996/04/25 16:06:27  hewett** Replaced declarations of DIC_UL with unsigned long.**** Revision 1.1.1.1  1996/03/26 18:38:44  hewett** Initial Release.*****/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -