X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz-z-assoc.h;h=d4d67ebd5d80858529bc578a34f1a9f03de43a2a;hb=26b3f7f15abcb69aaf00fb6bdaf410ff3e7de14c;hp=caec4401967a5f08c6b73008ee684ed20912c0cb;hpb=c6e5ad789740135af3558298f6e2014ae99ee7dd;p=yazpp-moved-to-github.git diff --git a/include/yaz-z-assoc.h b/include/yaz-z-assoc.h index caec440..d4d67eb 100644 --- a/include/yaz-z-assoc.h +++ b/include/yaz-z-assoc.h @@ -3,14 +3,11 @@ * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * - * $Log: yaz-z-assoc.h,v $ - * Revision 1.1 1999-04-09 11:47:23 adam - * Added object Yaz_Z_Assoc. Much more functional client. - * + * $Id: yaz-z-assoc.h,v 1.5 1999-12-06 13:52:45 adam Exp $ */ -#include -#include +#include +#include #include /** Z39.50 Assocation. @@ -26,11 +23,13 @@ class YAZ_EXPORT Yaz_Z_Assoc : public IYaz_PDU_Observer { /// Receive PDU void recv_PDU(const char *buf, int len); /// Connect notification - void connectNotify(); + virtual void connectNotify() = 0; /// Failure notification - void failNotify(); + virtual void failNotify() = 0; /// Timeout notification - void timeoutNotify(); + virtual void timeoutNotify() = 0; + /// Timeout specify + void timeout(int timeout); /// Begin Z39.50 client role void client(const char *addr); /// Begin Z39.50 server role @@ -49,6 +48,27 @@ class YAZ_EXPORT Yaz_Z_Assoc : public IYaz_PDU_Observer { Z_APDU *create_Z_PDU(int type); /// Request Alloc ODR odr_encode (); + ODR odr_decode (); + ODR odr_print (); + + /// OtherInformation + void get_otherInfoAPDU(Z_APDU *apdu, Z_OtherInformation ***oip); + Z_OtherInformationUnit *update_otherInformation ( + Z_OtherInformation **otherInformationP, int createFlag, + int *oid, int categoryValue, int deleteFlag); + void set_otherInformationString ( + Z_OtherInformation **otherInformationP, + int *oid, int categoryValue, + const char *str); + void set_otherInformationString ( + Z_OtherInformation **otherInformation, + int oidval, int categoryValue, + const char *str); + void set_otherInformationString ( + Z_APDU *apdu, + int oidval, int categoryValue, + const char *str); + void set_apdu_log(const char *file); private: static int yaz_init_flag; static int yaz_init_func(); @@ -56,4 +76,5 @@ class YAZ_EXPORT Yaz_Z_Assoc : public IYaz_PDU_Observer { ODR m_odr_in; ODR m_odr_out; ODR m_odr_print; + int m_log; };