X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=include%2Fyaz%2B%2B%2Fyaz-proxy.h;h=4ef900c5424a107978219c8604149106e90b1c7d;hb=911c48d1500fb1fe8d43da7507c4fd46bc95e2ec;hp=e4f3e5ef9637ef5ae21f2be088ca9ffb32a82ede;hpb=bd71f8812ca0f38438733efc89ecce1f49dae9e7;p=yazpp-moved-to-github.git diff --git a/include/yaz++/yaz-proxy.h b/include/yaz++/yaz-proxy.h index e4f3e5e..4ef900c 100644 --- a/include/yaz++/yaz-proxy.h +++ b/include/yaz++/yaz-proxy.h @@ -2,11 +2,12 @@ * Copyright (c) 1998-2000, Index Data. * See the file LICENSE for details. * - * $Id: yaz-proxy.h,v 1.3 2001-03-26 14:43:49 adam Exp $ + * $Id: yaz-proxy.h,v 1.6 2002-09-10 11:58:13 adam Exp $ */ #include #include +#include class Yaz_Proxy; @@ -28,10 +29,14 @@ class YAZ_EXPORT Yaz_ProxyClient : public Yaz_Z_Assoc { Yaz_ProxyClient **m_prev; int m_init_flag; Yaz_Z_Query *m_last_query; + Yaz_Z_Databases m_last_databases; + int m_last_ok; int m_last_resultCount; int m_sr_transform; int m_seqno; int m_waiting; + ODR m_init_odr; + Z_APDU *m_initResponse; }; /// Information Retrieval Proxy Server. @@ -51,7 +56,9 @@ class YAZ_EXPORT Yaz_Proxy : public Yaz_Z_Assoc { int m_max_clients; int m_keepalive; char *m_proxyTarget; + char *m_proxy_authentication; long m_seed; + char *m_optimize; public: Yaz_Proxy(IYaz_PDU_Observable *the_PDU_Observable); ~Yaz_Proxy(); @@ -61,8 +68,10 @@ class YAZ_EXPORT Yaz_Proxy : public Yaz_Z_Assoc { void failNotify(); void timeoutNotify(); void connectNotify(); - void set_proxyTarget(const char *target); - char *get_proxyTarget() { return m_proxyTarget; }; + const char *option(const char *name, const char *value); + void set_proxy_target(const char *target); + void set_proxy_authentication (const char *auth); + char *get_proxy_target() { return m_proxyTarget; }; void set_max_clients(int m) { m_max_clients = m; }; };