projects
/
yazpp-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1e15de1
)
Added fflush for APDU log
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 10 Sep 2002 11:30:37 +0000
(11:30 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 10 Sep 2002 11:30:37 +0000
(11:30 +0000)
src/yaz-z-assoc.cpp
patch
|
blob
|
history
diff --git
a/src/yaz-z-assoc.cpp
b/src/yaz-z-assoc.cpp
index
e3389d3
..
d28ae94
100644
(file)
--- a/
src/yaz-z-assoc.cpp
+++ b/
src/yaz-z-assoc.cpp
@@
-2,7
+2,7
@@
* Copyright (c) 1998-2001, Index Data.
* See the file LICENSE for details.
*
* 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.24 2002-09-10 11:30:37 adam Exp $
*/
#include <assert.h>
*/
#include <assert.h>
@@
-197,7
+197,10
@@
Z_APDU *Yaz_Z_Assoc::decode_Z_PDU(const char *buf, int len)
else
{
if (m_APDU_file)
else
{
if (m_APDU_file)
+ {
z_APDU(m_odr_print, &apdu, 0, "decode");
z_APDU(m_odr_print, &apdu, 0, "decode");
+ fflush(m_APDU_file);
+ }
return apdu;
}
}
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)
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");
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)
if (!z_APDU(m_odr_out, &apdu, 0, 0))
{
if (m_APDU_file)