X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2B%2B%2Fz-assoc.h;h=4a2b4d40c4f6672abb718ee53517671258ba551a;hb=50fbcf20ab48480e819ec5aef312a72c684bf213;hp=02c73029472aa30fc61d3588b52b2ddc5a3a0da8;hpb=ceb226cb18d96a6b3aa2dd6cff94aa27850362cf;p=yazpp-moved-to-github.git diff --git a/include/yaz++/z-assoc.h b/include/yaz++/z-assoc.h index 02c7302..4a2b4d4 100644 --- a/include/yaz++/z-assoc.h +++ b/include/yaz++/z-assoc.h @@ -2,7 +2,7 @@ * Copyright (c) 1998-2000, Index Data. * See the file LICENSE for details. * - * $Id: z-assoc.h,v 1.1 2002-10-09 12:50:26 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 @@ -43,9 +43,9 @@ class YAZ_EXPORT Yaz_Z_Assoc : public IYaz_PDU_Observer { /// Encode Z39.50 PDU. int encode_Z_PDU(Z_APDU *apdu, char **buf, int *len); /// Send Z39.50 PDU - int send_Z_PDU(Z_APDU *apdu); + int send_Z_PDU(Z_APDU *apdu, int *len); /// Receive Z39.50 PDU - virtual void recv_Z_PDU(Z_APDU *apdu) = 0; + virtual void recv_Z_PDU(Z_APDU *apdu, int len) = 0; /// Create Z39.50 PDU with reasonable defaults Z_APDU *create_Z_PDU(int type); /// Request Alloc @@ -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