X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fyaz-z-server.cpp;h=99ef2dbce2f4e2b5a6baffd27dad49763e3a01bb;hb=9d577e365bb10ae1bc0b3e4ee76bc0f888896d4f;hp=dff28151d662d54372962dc3b254feb9213af5e5;hpb=28588b9224eb5189af32b10f440ef2a917a05ea2;p=yazpp-moved-to-github.git diff --git a/src/yaz-z-server.cpp b/src/yaz-z-server.cpp index dff2815..99ef2db 100644 --- a/src/yaz-z-server.cpp +++ b/src/yaz-z-server.cpp @@ -2,7 +2,7 @@ * Copyright (c) 2000-2003, Index Data. * See the file LICENSE for details. * - * $Id: yaz-z-server.cpp,v 1.16 2003-10-01 13:13:51 adam Exp $ + * $Id: yaz-z-server.cpp,v 1.17 2003-12-16 14:17:01 adam Exp $ */ #include @@ -48,6 +48,14 @@ void Yaz_Z_Server::facility_add(IYaz_Server_Facility *facility, (*p)->m_facility = facility; } +void Yaz_Z_Server::recv_GDU (Z_GDU *apdu, int len) +{ + if (apdu->which == Z_GDU_Z3950) + return recv_Z_PDU(apdu->u.z3950, len); + else + delete this; +} + void Yaz_Z_Server::recv_Z_PDU (Z_APDU *apdu_request, int len) { Yaz_Z_Server_Facility_Info *f = m_facilities;