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
Reconnect on dead sessions to target if client session is active.
[yazpp-moved-to-github.git]
/
include
/
yaz++
/
z-assoc.h
diff --git
a/include/yaz++/z-assoc.h
b/include/yaz++/z-assoc.h
index
ada736b
..
c78906c
100644
(file)
--- 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.
*
* Copyright (c) 1998-2000, Index Data.
* See the file LICENSE for details.
*
- * $Id: z-assoc.h,v 1.2 2003-10-01 13:13:51 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
*/
#ifndef YAZ_Z_ASSOC_INCLUDED
#define YAZ_Z_ASSOC_INCLUDED
+#include <yaz/srw.h>
#include <yaz/proto.h>
#include <yaz/odr.h>
#include <yaz++/pdu-observer.h>
#include <yaz/proto.h>
#include <yaz/odr.h>
#include <yaz++/pdu-observer.h>
@@
-33,19
+34,20
@@
class YAZ_EXPORT Yaz_Z_Assoc : public IYaz_PDU_Observer {
/// Timeout specify
void timeout(int timeout);
/// Begin Z39.50 client role
/// 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
/// Begin Z39.50 server role
- void server(const char *addr);
+ int server(const char *addr);
/// Close connection
void close();
/// Decode Z39.50 PDU.
/// 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.
/// 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);
/// 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
/// 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
/// Create Z39.50 PDU with reasonable defaults
Z_APDU *create_Z_PDU(int type);
/// Request Alloc
@@
-80,6
+82,8
@@
class YAZ_EXPORT Yaz_Z_Assoc : public IYaz_PDU_Observer {
const char *get_hostname();
const char *get_hostname();
+ int set_APDU_yazlog(int v);
+
private:
static int yaz_init_flag;
static int yaz_init_func();
private:
static int yaz_init_flag;
static int yaz_init_func();
@@
-91,6
+95,7
@@
class YAZ_EXPORT Yaz_Z_Assoc : public IYaz_PDU_Observer {
FILE *m_APDU_file;
char *m_APDU_fname;
char *m_hostname;
FILE *m_APDU_file;
char *m_APDU_fname;
char *m_hostname;
+ int m_APDU_yazlog;
};
#endif
};
#endif