projects
/
yazpp-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: proxy doesn't cache searches/result sets when errors occur.
[yazpp-moved-to-github.git]
/
include
/
yaz++
/
yaz-proxy.h
diff --git
a/include/yaz++/yaz-proxy.h
b/include/yaz++/yaz-proxy.h
index
b0ad495
..
f05f2fe
100644
(file)
--- a/
include/yaz++/yaz-proxy.h
+++ b/
include/yaz++/yaz-proxy.h
@@
-2,7
+2,7
@@
* Copyright (c) 1998-2000, Index Data.
* See the file LICENSE for details.
*
* Copyright (c) 1998-2000, Index Data.
* See the file LICENSE for details.
*
- * $Id: yaz-proxy.h,v 1.4 2001-11-06 17:08:05 adam Exp $
+ * $Id: yaz-proxy.h,v 1.5 2002-01-14 12:01:27 adam Exp $
*/
#include <yaz++/yaz-z-assoc.h>
*/
#include <yaz++/yaz-z-assoc.h>
@@
-30,6
+30,7
@@
class YAZ_EXPORT Yaz_ProxyClient : public Yaz_Z_Assoc {
int m_init_flag;
Yaz_Z_Query *m_last_query;
Yaz_Z_Databases m_last_databases;
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_last_resultCount;
int m_sr_transform;
int m_seqno;
@@
-53,6
+54,7
@@
class YAZ_EXPORT Yaz_Proxy : public Yaz_Z_Assoc {
int m_max_clients;
int m_keepalive;
char *m_proxyTarget;
int m_max_clients;
int m_keepalive;
char *m_proxyTarget;
+ char *m_proxy_authentication;
long m_seed;
char *m_optimize;
public:
long m_seed;
char *m_optimize;
public:
@@
-65,8
+67,9
@@
class YAZ_EXPORT Yaz_Proxy : public Yaz_Z_Assoc {
void timeoutNotify();
void connectNotify();
const char *option(const char *name, const char *value);
void timeoutNotify();
void connectNotify();
const char *option(const char *name, const char *value);
- void set_proxyTarget(const char *target);
- char *get_proxyTarget() { return m_proxyTarget; };
+ 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; };
};
void set_max_clients(int m) { m_max_clients = m; };
};