From be1e73ac6baf74b1522837a4faa321a950b8ba26 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 9 Nov 2012 15:38:25 +0100 Subject: [PATCH] New PDU_Assoc method get_comstack Allows us to change COMSTACK settings, such as max_recv_bytes. --- include/yazpp/pdu-assoc.h | 2 ++ src/yaz-pdu-assoc.cpp | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/include/yazpp/pdu-assoc.h b/include/yazpp/pdu-assoc.h index 5e4d545..412b252 100644 --- a/include/yazpp/pdu-assoc.h +++ b/include/yazpp/pdu-assoc.h @@ -51,6 +51,8 @@ class YAZ_EXPORT PDU_Assoc : public IPDU_Observable, yazpp_1::ISocketObserver { PDU_Assoc(yazpp_1::ISocketObservable *socketObservable, COMSTACK cs); + COMSTACK get_comstack(); + virtual ~PDU_Assoc(); // optional feature implemented by PDU_Assoc (also by PDU_Asso_Thread) diff --git a/src/yaz-pdu-assoc.cpp b/src/yaz-pdu-assoc.cpp index ba962dc..9cf7d22 100644 --- a/src/yaz-pdu-assoc.cpp +++ b/src/yaz-pdu-assoc.cpp @@ -523,6 +523,11 @@ int PDU_Assoc::listen(IPDU_Observer *observer, const char *addr) return 0; } +COMSTACK PDU_Assoc::get_comstack() +{ + return m_p->cs; +} + void PDU_Assoc::idleTime(int idleTime) { m_p->idleTime = idleTime; -- 1.7.10.4