X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=include%2Fyaz-z-assoc.h;h=f02468d7a6f950050479da9a653e12cf0d135583;hb=2e14b1af67a2044e73d024bc29445035910a2dd4;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..f02468d 100644 --- a/include/yaz-z-assoc.h +++ b/include/yaz-z-assoc.h @@ -3,10 +3,7 @@ * 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.4 1999-09-13 12:53:44 adam Exp $ */ #include @@ -31,6 +28,8 @@ class YAZ_EXPORT Yaz_Z_Assoc : public IYaz_PDU_Observer { void failNotify(); /// Timeout notification void timeoutNotify(); + /// 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();