X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=include%2Fyaz-pdu-assoc.h;h=ff286c0a7ce1101e2436ac0105de2d12eeb43cdb;hb=2e14b1af67a2044e73d024bc29445035910a2dd4;hp=079a55f921adee0b7d19296ac6026f4453af88fe;hpb=bf377ba45c8c1cbcf843fdecc6d5c68fda6bad18;p=yazpp-moved-to-github.git diff --git a/include/yaz-pdu-assoc.h b/include/yaz-pdu-assoc.h index 079a55f..ff286c0 100644 --- a/include/yaz-pdu-assoc.h +++ b/include/yaz-pdu-assoc.h @@ -3,10 +3,7 @@ * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * - * $Log: yaz-pdu-assoc.h,v $ - * Revision 1.1 1999-01-28 09:41:07 adam - * Initial revision - * + * $Id: yaz-pdu-assoc.h,v 1.6 1999-11-10 10:02:34 adam Exp $ */ #include @@ -19,7 +16,7 @@ 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 { @@ -41,9 +38,11 @@ class Yaz_PDU_Assoc : public IYaz_PDU_Observable, IYazSocketObserver { int m_input_len; 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); + Yaz_PDU_Assoc(IYazSocketObservable *socketObservable, COMSTACK cs = 0); /// Close socket and destroy object. virtual ~Yaz_PDU_Assoc(); /// Clone the object @@ -58,4 +57,8 @@ class Yaz_PDU_Assoc : public IYaz_PDU_Observable, IYazSocketObserver { void socketNotify(int event); /// Close socket void close(); + /// Close and destroy + void destroy(); + /// Set Idle Time + void idleTime (int timeout); };