X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2B%2B%2Fz-assoc.h;h=c78906c1c98c22ebaca0f123c5a0a177f541a58c;hb=4c287a6c8de2a59e1b9d249c0166bfb6c37cd571;hp=4a2b4d40c4f6672abb718ee53517671258ba551a;hpb=50fbcf20ab48480e819ec5aef312a72c684bf213;p=yazpp-moved-to-github.git diff --git a/include/yaz++/z-assoc.h b/include/yaz++/z-assoc.h index 4a2b4d4..c78906c 100644 --- a/include/yaz++/z-assoc.h +++ b/include/yaz++/z-assoc.h @@ -2,12 +2,13 @@ * Copyright (c) 1998-2000, Index Data. * See the file LICENSE for details. * - * $Id: z-assoc.h,v 1.4 2003-10-16 16:10:43 adam Exp $ + * $Id: z-assoc.h,v 1.6 2003-12-16 14:17:01 adam Exp $ */ #ifndef YAZ_Z_ASSOC_INCLUDED #define YAZ_Z_ASSOC_INCLUDED +#include #include #include #include @@ -35,17 +36,18 @@ class YAZ_EXPORT Yaz_Z_Assoc : public IYaz_PDU_Observer { /// Begin Z39.50 client role int client(const char *addr); /// Begin Z39.50 server role - void server(const char *addr); + int server(const char *addr); /// Close connection void close(); /// Decode Z39.50 PDU. - Z_APDU *decode_Z_PDU(const char *buf, int len); + Z_GDU *decode_GDU(const char *buf, int len); /// Encode Z39.50 PDU. - int encode_Z_PDU(Z_APDU *apdu, char **buf, int *len); + int encode_GDU(Z_GDU *apdu, char **buf, int *len); /// Send Z39.50 PDU int send_Z_PDU(Z_APDU *apdu, int *len); + int send_GDU(Z_GDU *apdu, int *len); /// Receive Z39.50 PDU - virtual void recv_Z_PDU(Z_APDU *apdu, int len) = 0; + virtual void recv_GDU(Z_GDU *apdu, int len) = 0; /// Create Z39.50 PDU with reasonable defaults Z_APDU *create_Z_PDU(int type); /// Request Alloc