From: Adam Dickmeiss Date: Tue, 12 Sep 2000 16:04:17 +0000 (+0000) Subject: Added comstack method for Yaz_PDU_Assoc.. X-Git-Tag: YAZPP.0.3~76 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=e7249fa8f8c707354b1a797d0bb7a5d5e1097182;p=yazpp-moved-to-github.git Added comstack method for Yaz_PDU_Assoc.. --- diff --git a/include/yaz-pdu-assoc.h b/include/yaz-pdu-assoc.h index 7fa10ab..e5c223c 100644 --- a/include/yaz-pdu-assoc.h +++ b/include/yaz-pdu-assoc.h @@ -2,7 +2,7 @@ * Copyright (c) 1998-2000, Index Data. * See the file LICENSE for details. * - * $Id: yaz-pdu-assoc.h,v 1.9 2000-09-12 12:09:53 adam Exp $ + * $Id: yaz-pdu-assoc.h,v 1.10 2000-09-12 16:04:17 adam Exp $ */ #include @@ -29,7 +29,6 @@ class YAZ_EXPORT Yaz_PDU_Assoc : public IYaz_PDU_Observable, IYazSocketObserver Yaz_PDU_Assoc *m_parent; Yaz_PDU_Assoc *m_children; Yaz_PDU_Assoc *m_next; - COMSTACK Yaz_PDU_Assoc::comstack(); COMSTACK m_cs; IYazSocketObservable *m_socketObservable; IYaz_PDU_Observer *m_PDU_Observer; @@ -41,6 +40,7 @@ class YAZ_EXPORT Yaz_PDU_Assoc : public IYaz_PDU_Observable, IYazSocketObserver int m_idleTime; int m_log; public: + COMSTACK comstack(); /// Create object using specified socketObservable Yaz_PDU_Assoc(IYazSocketObservable *socketObservable); /// Close socket and destroy object. diff --git a/src/yaz-server.cpp b/src/yaz-server.cpp index 1d894a1..ccc5a45 100644 --- a/src/yaz-server.cpp +++ b/src/yaz-server.cpp @@ -3,7 +3,10 @@ * See the file LICENSE for details. * * $Log: yaz-server.cpp,v $ - * Revision 1.9 2000-09-12 12:09:53 adam + * Revision 1.10 2000-09-12 16:04:17 adam + * Added comstack method for Yaz_PDU_Assoc.. + * + * Revision 1.9 2000/09/12 12:09:53 adam * More work on high-level server. * * Revision 1.8 2000/09/08 10:23:42 adam @@ -145,6 +148,9 @@ int main(int argc, char **argv) for (int i = 1; i < argc; i++) z->server(argv[i]); } + COMSTACK cs = my_PDU_Assoc->comstack(); + if (cs) + printf ("fd=%d\n", cs_fileno(cs)); while (!stop && mySocketManager.processEvent() > 0) ; logf (LOG_LOG, "bailing out");