From 7247137cb7c4aca0a67cfd2f0f814067c2bec4c8 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 26 Sep 2005 09:24:14 +0000 Subject: [PATCH] Add more proper options for t-server --- src/t-server.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/t-server.cpp b/src/t-server.cpp index ad88d02..a264ddf 100644 --- a/src/t-server.cpp +++ b/src/t-server.cpp @@ -2,7 +2,7 @@ * Copyright (c) 1998-2005, Index Data. * See the file LICENSE for details. * - * $Id: t-server.cpp,v 1.4 2005-09-12 20:09:14 adam Exp $ + * $Id: t-server.cpp,v 1.5 2005-09-26 09:24:14 adam Exp $ */ #include @@ -58,11 +58,16 @@ IMsg_Thread *Auth_Msg::handle() { case Z_APDU_initRequest: apdu = zget_APDU(odr, Z_APDU_initResponse); + ODR_MASK_SET(apdu->u.initResponse->options, Z_Options_triggerResourceCtrl); + ODR_MASK_SET(apdu->u.initResponse->options, Z_Options_search); + ODR_MASK_SET(apdu->u.initResponse->options, Z_Options_present); break; case Z_APDU_searchRequest: sleep(5); apdu = zget_APDU(odr, Z_APDU_searchResponse); break; + case Z_APDU_triggerResourceControlRequest: + break; default: apdu = zget_APDU(odr, Z_APDU_close); m_close_flag = 1; @@ -116,6 +121,7 @@ void Auth_Msg::result() } if (m_front->m_delete_flag && m_front->m_no_requests == 0) delete m_front; + delete this; } MyServer::MyServer(IPDU_Observable *the_PDU_Observable, -- 1.7.10.4