X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2B%2B%2Fz-server.h;h=335da7ea91ab65dd2d68ebf838ab3587a7a7f49a;hb=86726b00b052694e65b036c262f5fe9096554175;hp=7880575f193e465c1598147987609d49e42ef0fe;hpb=ff30371654768d249cd4c92a9af26ae6bff8c65b;p=yazpp-moved-to-github.git diff --git a/include/yaz++/z-server.h b/include/yaz++/z-server.h index 7880575..335da7e 100644 --- a/include/yaz++/z-server.h +++ b/include/yaz++/z-server.h @@ -2,11 +2,13 @@ * Copyright (c) 2000-2001, Index Data. * See the file LICENSE for details. * - * $Id: z-server.h,v 1.2 2002-10-28 12:16:09 adam Exp $ + * $Id: z-server.h,v 1.6 2005-06-02 06:40:21 adam Exp $ */ #include +namespace yazpp_1 { + class Yaz_Z_Server; class YAZ_EXPORT Yaz_Z_ServerUtility { @@ -119,7 +121,8 @@ class YAZ_EXPORT Yaz_Z_Server : public Yaz_Z_Assoc { public: Yaz_Z_Server(IYaz_PDU_Observable *the_PDU_Observable); virtual ~Yaz_Z_Server(); - virtual void recv_Z_PDU(Z_APDU *apdu); + void recv_Z_PDU(Z_APDU *apdu, int len); + virtual void recv_GDU(Z_GDU *apdu, int len); void facility_add(IYaz_Server_Facility *facility, const char *name); void facility_reset (); @@ -130,5 +133,6 @@ public: class YAZ_EXPORT Yaz_USMARC { public: - const char *get_record(int position); + const char *get_record(size_t position); +}; };