minor
[yazpp-moved-to-github.git] / include / yaz-pdu-observer.h
index 292bb95..65e6a15 100644 (file)
@@ -1,9 +1,8 @@
 /*
- * Copyright (c) 1998-1999, Index Data.
+ * Copyright (c) 1998-2000, Index Data.
  * See the file LICENSE for details.
- * Sebastian Hammer, Adam Dickmeiss
  * 
- * $Id: yaz-pdu-observer.h,v 1.6 1999-04-20 10:30:05 adam Exp $
+ * $Id: yaz-pdu-observer.h,v 1.8 2000-09-08 10:23:42 adam Exp $
  */
 
 #ifndef YAZ_PDU_OBSERVER_H
@@ -33,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.
@@ -43,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;