X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fyaz-z-assoc.cpp;h=2761220d6b5c69e9917c139ddcc80a7e21de7f93;hb=b3d26248b0c906f1a487d65aae5a2a33d91e8fde;hp=e3389d3f5fc90c5e70314919a3e2c4598a61defd;hpb=18e58bebefe391a91ffac537ad589deb2baea89c;p=yazpp-moved-to-github.git diff --git a/src/yaz-z-assoc.cpp b/src/yaz-z-assoc.cpp index e3389d3..2761220 100644 --- a/src/yaz-z-assoc.cpp +++ b/src/yaz-z-assoc.cpp @@ -2,14 +2,14 @@ * Copyright (c) 1998-2001, Index Data. * See the file LICENSE for details. * - * $Id: yaz-z-assoc.cpp,v 1.23 2002-04-22 12:08:07 adam Exp $ + * $Id: yaz-z-assoc.cpp,v 1.25 2002-10-09 12:50:26 adam Exp $ */ #include #include #include -#include +#include #include int Yaz_Z_Assoc::yaz_init_func() @@ -197,7 +197,10 @@ Z_APDU *Yaz_Z_Assoc::decode_Z_PDU(const char *buf, int len) else { if (m_APDU_file) + { z_APDU(m_odr_print, &apdu, 0, "decode"); + fflush(m_APDU_file); + } return apdu; } } @@ -205,7 +208,10 @@ Z_APDU *Yaz_Z_Assoc::decode_Z_PDU(const char *buf, int len) int Yaz_Z_Assoc::encode_Z_PDU(Z_APDU *apdu, char **buf, int *len) { if (m_APDU_file) + { z_APDU(m_odr_print, &apdu, 0, "encode"); + fflush(m_APDU_file); + } if (!z_APDU(m_odr_out, &apdu, 0, 0)) { if (m_APDU_file)