* Sebastian Hammer, Adam Dickmeiss
*
* $Log: seshigh.c,v $
- * Revision 1.26 1995-05-18 13:02:12 quinn
+ * Revision 1.29 1995-06-01 11:25:03 quinn
+ * Smallish.
+ *
+ * Revision 1.28 1995/06/01 11:21:01 quinn
+ * Attempting to fix a bug in pack-records. replaced break with continue
+ * for large records, according to standard.
+ *
+ * Revision 1.27 1995/05/29 08:12:06 quinn
+ * Moved oid to util
+ *
+ * Revision 1.26 1995/05/18 13:02:12 quinn
* Smallish.
*
* Revision 1.25 1995/05/17 08:42:26 quinn
new->rejected = 0;
request_initq(&new->incoming);
request_initq(&new->outgoing);
- if (cs_getproto(link) == CS_Z3950)
- new->proto = PROTO_Z3950;
- else
- new->proto = PROTO_SR;
+ new->proto = cs_getproto(link);
return new;
}
resp.preferredMessageSize = &assoc->preferredMessageSize;
resp.maximumRecordSize = &assoc->maximumRecordSize;
resp.result = &result;
- resp.implementationId = "YAZ";
resp.implementationName = "Index Data/YAZ Generic Frontend Server";
- resp.implementationVersion = YAZ_VERSION;
resp.userInformationField = 0;
if (binitres->errcode)
{
reclist.records[reclist.num_records] =
surrogatediagrec(a->proto, fres->basename, 16, 0);
reclist.num_records++;
- *pres = Z_PRES_PARTIAL_2;
- break;
+ total_length += 10; /* totally arbitrary */
+ continue;
}
}
else /* too big entirely */
reclist.records[reclist.num_records] =
surrogatediagrec(a->proto, fres->basename, 17, 0);
reclist.num_records++;
- *pres = Z_PRES_PARTIAL_2;
- break;
+ total_length += 10; /* totally arbitrary */
+ continue;
}
}
if (!(thisrec = odr_malloc(a->encode, sizeof(*thisrec))))
reclist.records[reclist.num_records] = thisrec;
reclist.num_records++;
total_length += fres->len;
- (*num)++;
*next = fres->last_in_set ? 0 : recno + 1;
}
+ *num = reclist.num_records;
return &records;
}