Better reporting of statistics. Handling of ODR decode improved
[yazpp-moved-to-github.git] / include / yaz++ / z-assoc.h
index ada736b..4a2b4d4 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (c) 1998-2000, Index Data.
  * See the file LICENSE for details.
  * 
- * $Id: z-assoc.h,v 1.2 2003-10-01 13:13:51 adam Exp $
+ * $Id: z-assoc.h,v 1.4 2003-10-16 16:10:43 adam Exp $
  */
 
 #ifndef YAZ_Z_ASSOC_INCLUDED
@@ -33,7 +33,7 @@ class YAZ_EXPORT Yaz_Z_Assoc : public IYaz_PDU_Observer {
     /// Timeout specify
     void timeout(int timeout);
     /// Begin Z39.50 client role
-    void client(const char *addr);
+    int client(const char *addr);
     /// Begin Z39.50 server role
     void server(const char *addr);
     /// Close connection
@@ -80,6 +80,8 @@ class YAZ_EXPORT Yaz_Z_Assoc : public IYaz_PDU_Observer {
 
     const char *get_hostname();
 
+    int set_APDU_yazlog(int v);
+
  private:
     static int yaz_init_flag;
     static int yaz_init_func();
@@ -91,6 +93,7 @@ class YAZ_EXPORT Yaz_Z_Assoc : public IYaz_PDU_Observer {
     FILE *m_APDU_file;
     char *m_APDU_fname;
     char *m_hostname;
+    int m_APDU_yazlog;
 };
 
 #endif