X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=queue.c;h=4e1a05165220963b82d47d65b0bc792085972842;hb=fb553a2c4af3bd8fa1c11336a3d826a77e94f60b;hp=9de46636dcc6494be512a6bb53a02ac6ff1f9167;hpb=6ddbb3991cc5ad6089410078695f574b2bd8388e;p=ir-tcl-moved-to-github.git diff --git a/queue.c b/queue.c index 9de4663..4e1a051 100644 --- a/queue.c +++ b/queue.c @@ -6,7 +6,14 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: queue.c,v $ - * Revision 1.3 1995-08-04 11:32:40 adam + * Revision 1.5 1995-11-28 13:53:40 quinn + * Windows port. + * + * Revision 1.4 1995/10/17 12:18:59 adam + * Bug fix: when target connection closed, the connection was not + * properly reestablished. + * + * Revision 1.3 1995/08/04 11:32:40 adam * More work on output queue. Memory related routines moved * to mem.c * @@ -32,7 +39,7 @@ int ir_tcl_send_APDU (Tcl_Interp *interp, IrTcl_Obj *p, Z_APDU *apdu, if (!z_APDU (p->odr_out, &apdu, 0)) { - Tcl_AppendResult (interp, odr_errlist [odr_geterror (p->odr_out)], + Tcl_AppendResult (interp, odr_errmsg (odr_geterror (p->odr_out)), NULL); odr_reset (p->odr_out); return TCL_ERROR; @@ -53,12 +60,15 @@ int ir_tcl_send_APDU (Tcl_Interp *interp, IrTcl_Obj *p, Z_APDU *apdu, odr_reset (p->odr_out); if (p->state == IR_TCL_R_Idle) { + logf (LOG_DEBUG, "send_apdu. Sending %s", msg); if (ir_tcl_send_q (p, p->request_queue, msg) == TCL_ERROR) { sprintf (interp->result, "cs_put failed in %s", msg); return TCL_ERROR; } } + else + logf (LOG_DEBUG, "send_apdu. Not idle (%s)", msg); return TCL_OK; }