X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz-pdu-observer.h;h=fdedc510c6296419a674b93cf7efd058362a6a34;hb=26b3f7f15abcb69aaf00fb6bdaf410ff3e7de14c;hp=78618bf38614627cd0510d7de8b3575a02eae3e0;hpb=a8063bff74c6d48f7a0aec23c266894777e3134b;p=yazpp-moved-to-github.git diff --git a/include/yaz-pdu-observer.h b/include/yaz-pdu-observer.h index 78618bf..fdedc51 100644 --- a/include/yaz-pdu-observer.h +++ b/include/yaz-pdu-observer.h @@ -3,20 +3,7 @@ * See the file LICENSE for details. * Sebastian Hammer, Adam Dickmeiss * - * $Log: yaz-pdu-observer.h,v $ - * 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:14 adam - * First WIN32 port of YAZ++. - * - * 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.7 1999-12-06 13:52:45 adam Exp $ */ #ifndef YAZ_PDU_OBSERVER_H @@ -46,6 +33,8 @@ class YAZ_EXPORT IYaz_PDU_Observable { 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. @@ -56,11 +45,11 @@ class YAZ_EXPORT IYaz_PDU_Observer { 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; - /// Called whenever the connection was closed + /// 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;