X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz-pdu-observer.h;h=65e6a156e68a791352693dacbb6614953cad8bcf;hp=f89436fade48289291a19ed9aa9ee3f99974b035;hb=b35b70078e2c4fb3af710cfc5b9319bfcc7073dd;hpb=c6e5ad789740135af3558298f6e2014ae99ee7dd diff --git a/include/yaz-pdu-observer.h b/include/yaz-pdu-observer.h index f89436f..65e6a15 100644 --- a/include/yaz-pdu-observer.h +++ b/include/yaz-pdu-observer.h @@ -1,25 +1,8 @@ /* - * Copyright (c) 1998-1999, Index Data. + * Copyright (c) 1998-2000, Index Data. * See the file LICENSE for details. - * Sebastian Hammer, Adam Dickmeiss * - * $Log: yaz-pdu-observer.h,v $ - * Revision 1.5 1999-04-09 11:47:23 adam - * Added object Yaz_Z_Assoc. Much more functional client. - * - * 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.8 2000-09-08 10:23:42 adam Exp $ */ #ifndef YAZ_PDU_OBSERVER_H @@ -49,6 +32,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. @@ -59,7 +44,7 @@ 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;