* See the file LICENSE for details.
* Sebastian Hammer, Adam Dickmeiss
*
- * $Id: yaz-z-assoc.h,v 1.3 1999-04-21 12:09:01 adam Exp $
+ * $Id: yaz-z-assoc.h,v 1.6 2000-05-10 11:36:58 ian Exp $
*/
-#include <proto.h>
-#include <odr.h>
+#include <yaz/proto.h>
+#include <yaz/odr.h>
#include <yaz-pdu-observer.h>
/** Z39.50 Assocation.
/// 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 get_otherInfoAPDU(Z_APDU *apdu, Z_OtherInformation ***oip);
Z_OtherInformationUnit *update_otherInformation (
Z_OtherInformation **otherInformationP, int createFlag,
- int *oid, int categoryValue);
+ int *oid, int categoryValue, int deleteFlag);
void set_otherInformationString (
Z_OtherInformation **otherInformationP,
int *oid, int categoryValue,
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();
ODR m_odr_in;
ODR m_odr_out;
ODR m_odr_print;
+ int m_log;
};