projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Doc. update
[yaz-moved-to-github.git]
/
rfc1006
/
rfct.c
diff --git
a/rfc1006/rfct.c
b/rfc1006/rfct.c
index
996d87e
..
3b2537e
100644
(file)
--- a/
rfc1006/rfct.c
+++ b/
rfc1006/rfct.c
@@
-4,7
+4,13
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: rfct.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: rfct.c,v $
- * Revision 1.2 1995-05-02 08:53:09 quinn
+ * Revision 1.4 1995-05-18 13:02:07 quinn
+ * Smallish.
+ *
+ * Revision 1.3 1995/05/16 09:37:18 quinn
+ * Fixed bug
+ *
+ * Revision 1.2 1995/05/02 08:53:09 quinn
* Trying in vain to fix comm with ISODE
*
* Revision 1.1 1995/03/30 14:03:17 quinn
* Trying in vain to fix comm with ISODE
*
* Revision 1.1 1995/03/30 14:03:17 quinn
@@
-257,7
+263,7
@@
int t_open(char *name, int oflag, struct t_info *info)
{
info->addr = TSEL_MAXLEN + sizeof(struct sockaddr_in) + 1;
info->options = 1024;
{
info->addr = TSEL_MAXLEN + sizeof(struct sockaddr_in) + 1;
info->options = 1024;
- info->tsdu = 2041; /* trying to please the ISODE */
+ info->tsdu = -1; /* is this right? */
info->etsdu = 0;
info->connect = -2;
info->discon = -2;
info->etsdu = 0;
info->connect = -2;
info->discon = -2;
@@
-774,6
+780,12
@@
static int t_look_wait(int fd, int wait)
return T_LISTEN; /* the only possible type of event */
if ((res = read_n(fd, (char*) &head, 6)) < 0)
return -1;
return T_LISTEN; /* the only possible type of event */
if ((res = read_n(fd, (char*) &head, 6)) < 0)
return -1;
+ if (res == 0)
+ {
+ TRC(fprintf(stderr, "Network disconnect\n"));
+ return cnt->event = T_DISCONNECT;
+ }
+ TRC(fprintf(stderr, "t_look got %d bytes\n", res));
if (head.version != RFC_VERSION)
{
TRC(fprintf(stderr, "Got bad RFC1006 version in t_look: %d.\n",
if (head.version != RFC_VERSION)
{
TRC(fprintf(stderr, "Got bad RFC1006 version in t_look: %d.\n",