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
Added object Yaz_Z_Assoc. Much more functional client.
[yazpp-moved-to-github.git]
/
include
/
yaz-pdu-assoc.h
diff --git
a/include/yaz-pdu-assoc.h
b/include/yaz-pdu-assoc.h
index
425a230
..
c5930c4
100644
(file)
--- a/
include/yaz-pdu-assoc.h
+++ b/
include/yaz-pdu-assoc.h
@@
-4,7
+4,13
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: yaz-pdu-assoc.h,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: yaz-pdu-assoc.h,v $
- * Revision 1.2 1999-01-28 13:08:40 adam
+ * Revision 1.4 1999-03-23 14:17:57 adam
+ * More work on timeout handling. Work on yaz-client.
+ *
+ * Revision 1.3 1999/02/02 14:01:13 adam
+ * First WIN32 port of YAZ++.
+ *
+ * Revision 1.2 1999/01/28 13:08:40 adam
* Yaz_PDU_Assoc better encapsulated. Memory leak fix in
* yaz-socket-manager.cc.
*
* Yaz_PDU_Assoc better encapsulated. Memory leak fix in
* yaz-socket-manager.cc.
*
@@
-23,7
+29,7
@@
the method connect. The server role is initiated by using the
listen method.
*/
the method connect. The server role is initiated by using the
listen method.
*/
-class Yaz_PDU_Assoc : public IYaz_PDU_Observable, IYazSocketObserver {
+class YAZ_EXPORT Yaz_PDU_Assoc : public IYaz_PDU_Observable, IYazSocketObserver {
private:
enum { Connecting, Connected, Listen, Ready, Closed } m_state;
class PDU_Queue {
private:
enum { Connecting, Connected, Listen, Ready, Closed } m_state;
class PDU_Queue {
@@
-46,6
+52,7
@@
class Yaz_PDU_Assoc : public IYaz_PDU_Observable, IYazSocketObserver {
PDU_Queue *m_queue_out;
int Yaz_PDU_Assoc::flush_PDU();
int *m_destroyed;
PDU_Queue *m_queue_out;
int Yaz_PDU_Assoc::flush_PDU();
int *m_destroyed;
+ int m_idleTime;
public:
/// Create object using specified socketObservable
Yaz_PDU_Assoc(IYazSocketObservable *socketObservable, COMSTACK cs);
public:
/// Create object using specified socketObservable
Yaz_PDU_Assoc(IYazSocketObservable *socketObservable, COMSTACK cs);
@@
-65,4
+72,6
@@
class Yaz_PDU_Assoc : public IYaz_PDU_Observable, IYazSocketObserver {
void close();
/// Close and destroy
void destroy();
void close();
/// Close and destroy
void destroy();
+ /// Set Idle Time
+ void idleTime (int timeout);
};
};