X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=include%2Fyaz-z-assoc.h;h=4a47d684a3fb4380f6c9dbbef81f2f7a36b35825;hb=1063240efa2d4f03a72353936e8a7b73ee249b0d;hp=f02468d7a6f950050479da9a653e12cf0d135583;hpb=66767801433aba6cd2ac9fc744a1057867df7fa9;p=yazpp-moved-to-github.git diff --git a/include/yaz-z-assoc.h b/include/yaz-z-assoc.h index f02468d..4a47d68 100644 --- a/include/yaz-z-assoc.h +++ b/include/yaz-z-assoc.h @@ -3,11 +3,11 @@ * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * - * $Id: yaz-z-assoc.h,v 1.4 1999-09-13 12:53:44 adam Exp $ + * $Id: yaz-z-assoc.h,v 1.6 2000-05-10 11:36:58 ian Exp $ */ -#include -#include +#include +#include #include /** Z39.50 Assocation. @@ -23,11 +23,11 @@ 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 @@ -69,6 +69,9 @@ class YAZ_EXPORT Yaz_Z_Assoc : public IYaz_PDU_Observer { int oidval, int categoryValue, const char *str); void set_apdu_log(const char *file); + + Z_ReferenceId* getRefID(char* str); + private: static int yaz_init_flag; static int yaz_init_func(); @@ -76,4 +79,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; };