Added skeleton of yaz-z-server.
[yazpp-moved-to-github.git] / include / yaz-z-assoc.h
index d4d67eb..c3694f1 100644 (file)
@@ -1,9 +1,8 @@
 /*
- * Copyright (c) 1998-1999, Index Data.
+ * Copyright (c) 1998-2000, Index Data.
  * See the file LICENSE for details.
- * Sebastian Hammer, Adam Dickmeiss
  * 
- * $Id: yaz-z-assoc.h,v 1.5 1999-12-06 13:52:45 adam Exp $
+ * $Id: yaz-z-assoc.h,v 1.8 2000-09-08 10:23:42 adam Exp $
  */
 
 #include <yaz/proto.h>
@@ -51,6 +50,9 @@ class YAZ_EXPORT Yaz_Z_Assoc : public IYaz_PDU_Observer {
     ODR odr_decode ();
     ODR odr_print ();
 
+    void set_APDU_log(const char *fname);
+    const char *get_APDU_log();
+
     /// OtherInformation
     void get_otherInfoAPDU(Z_APDU *apdu, Z_OtherInformation ***oip);
     Z_OtherInformationUnit *update_otherInformation (
@@ -68,7 +70,11 @@ class YAZ_EXPORT Yaz_Z_Assoc : public IYaz_PDU_Observer {
        Z_APDU *apdu,
        int oidval, int categoryValue,
        const char *str);
-    void set_apdu_log(const char *file);
+
+    Z_ReferenceId* getRefID(char* str);
+
+    const char *get_hostname();
+
  private:
     static int yaz_init_flag;
     static int yaz_init_func();
@@ -77,4 +83,7 @@ class YAZ_EXPORT Yaz_Z_Assoc : public IYaz_PDU_Observer {
     ODR m_odr_out;
     ODR m_odr_print;
     int m_log;
+    FILE *m_APDU_file;
+    char *m_APDU_fname;
+    char *m_hostname;
 };