IrTcl incorporated in the gateway.
[egate.git] / www / wproto.c
index 1a41b72..a258df9 100644 (file)
  * USE OR PERFORMANCE OF THIS SOFTWARE.
  *
  * $Log: wproto.c,v $
- * Revision 1.2  1995/10/23 16:55:39  adam
+ * Revision 1.3  1995/10/27 15:12:10  adam
+ * IrTcl incorporated in the gateway.
+ * Better separation of script types.
+ * Z39.50 gateway scripts entered.
+ *
+ * Revision 1.2  1995/10/23  16:55:39  adam
  * A lot of changes - really.
  *
  * Revision 1.1  1995/10/20  11:49:26  adam
@@ -249,6 +254,7 @@ int wproto_process(WCLIENT wc, int timeout)
            top = 0;
        FD_ZERO(&input);
        FD_SET(wc->linein, &input);
+        /* go through select handle list */
        while ((rs = select(wc->linein + 1, &input, 0, 0, top)) < 0 &&
            errno == EINTR)
            ;
@@ -264,6 +270,7 @@ int wproto_process(WCLIENT wc, int timeout)
                    timeout);
            return 0;
        }
+        /* determine handle (fifo or user) */
        if (read(wc->linein, &toread, sizeof(toread)) < sizeof(toread))
        {
            gw_log (GW_LOG_FATAL|GW_LOG_ERRNO, mod, "wp_proc:len read failed");