/*
* $Id$
* $Log$
+ * Revision 1.4 2000/07/18 06:51:58 priikone
+ * Debug version bug fixes.
+ *
* Revision 1.3 2000/07/14 06:10:15 priikone
* Moved all the generic packet sending, enryption, reception,
* decryption and processing function from client and server to
/* Write to network */
ret = silc_packet_write(sock->sock, sock->outbuf);
- if (ret == -1)
+ if (ret == -1) {
SILC_LOG_ERROR(("Error sending packet, dropped"));
+ }
if (ret != -2)
return ret;
ret = silc_packet_read(sock->sock, sock->inbuf);
/* Error */
- if (ret == -1)
+ if (ret == -1) {
SILC_LOG_ERROR(("Error reading packet, dropped"));
+ }
return ret;
}
/*
* $Id$
* $Log$
+ * Revision 1.3 2000/07/18 06:51:58 priikone
+ * Debug version bug fixes.
+ *
* Revision 1.2 2000/07/05 06:06:35 priikone
* Global cosmetic change.
*
break;
}
- if (schedule.timeout)
+ if (schedule.timeout) {
SILC_LOG_DEBUG(("timeout: sec=%d, usec=%d", schedule.timeout->tv_sec,
schedule.timeout->tv_usec));
+ }
/* This is the main select(). The program blocks here until some
of the selected file descriptors change status or the selected