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
minor
[yazpp-moved-to-github.git]
/
include
/
yaz-pdu-observer.h
diff --git
a/include/yaz-pdu-observer.h
b/include/yaz-pdu-observer.h
index
e2f5961
..
65e6a15
100644
(file)
--- a/
include/yaz-pdu-observer.h
+++ b/
include/yaz-pdu-observer.h
@@
-1,16
+1,8
@@
/*
/*
- * Copyright (c) 1998-1999, Index Data.
+ * Copyright (c) 1998-2000, Index Data.
* See the file LICENSE for details.
* See the file LICENSE for details.
- * Sebastian Hammer, Adam Dickmeiss
*
*
- * $Log: yaz-pdu-observer.h,v $
- * Revision 1.2 1999-01-28 13:08:41 adam
- * Yaz_PDU_Assoc better encapsulated. Memory leak fix in
- * yaz-socket-manager.cc.
- *
- * Revision 1.1.1.1 1999/01/28 09:41:07 adam
- * First implementation of YAZ++.
- *
+ * $Id: yaz-pdu-observer.h,v 1.8 2000-09-08 10:23:42 adam Exp $
*/
#ifndef YAZ_PDU_OBSERVER_H
*/
#ifndef YAZ_PDU_OBSERVER_H
@@
-24,7
+16,7
@@
class IYaz_PDU_Observer;
transmitted/received over the network. To use this interface the
IYaz_PDU_Observer interface must be implemented.
*/
transmitted/received over the network. To use this interface the
IYaz_PDU_Observer interface must be implemented.
*/
-class IYaz_PDU_Observable {
+class YAZ_EXPORT IYaz_PDU_Observable {
public:
/// Send encoded PDU buffer of specified length
virtual int send_PDU(const char *buf, int len) = 0;
public:
/// Send encoded PDU buffer of specified length
virtual int send_PDU(const char *buf, int len) = 0;
@@
-38,20
+30,26
@@
class IYaz_PDU_Observable {
virtual IYaz_PDU_Observable *clone() = 0;
/// Destroy completely
virtual void destroy() = 0;
virtual IYaz_PDU_Observable *clone() = 0;
/// Destroy completely
virtual void destroy() = 0;
+ /// Set Idle Time
+ virtual void idleTime (int timeout) = 0;
+ /// open with existing socket
+ virtual void socket(IYaz_PDU_Observer *observer, int fd) = 0;
};
/** Protocol Data Unit Observer.
This interface is used together with the IYaz_PDU_Observable interface
and acts as a callback interface for it.
*/
};
/** Protocol Data Unit Observer.
This interface is used together with the IYaz_PDU_Observable interface
and acts as a callback interface for it.
*/
-class IYaz_PDU_Observer {
+class YAZ_EXPORT IYaz_PDU_Observer {
public:
/// A PDU has been received
virtual void recv_PDU(const char *buf, int len) = 0;
public:
/// A PDU has been received
virtual void recv_PDU(const char *buf, int len) = 0;
- /// Called when Iyaz_PDU_Observabvle::connect was successful.
+ /// Called when Iyaz_PDU_Observable::connect was successful.
virtual void connectNotify() = 0;
/// Called whenever the connection was closed
virtual void failNotify() = 0;
virtual void connectNotify() = 0;
/// Called whenever the connection was closed
virtual void failNotify() = 0;
+ /// Called whenever there is a timeout
+ virtual void timeoutNotify() = 0;
/// Make clone of observer using IYaz_PDU_Observable interface
virtual IYaz_PDU_Observer *clone(IYaz_PDU_Observable *the_PDU_Observable) = 0;
};
/// Make clone of observer using IYaz_PDU_Observable interface
virtual IYaz_PDU_Observer *clone(IYaz_PDU_Observable *the_PDU_Observable) = 0;
};