* 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.5 1999-04-20 10:30:05 adam Exp $
*/
#include <comstack.h>
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 {
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);
void socketNotify(int event);
/// Close socket
void close();
+ /// Close and destroy
+ void destroy();
+ /// Set Idle Time
+ void idleTime (int timeout);
};