Bumped to next development version

This commit is contained in:
Michiel Broek
2003-10-22 21:11:40 +00:00
parent 7663668592
commit ff85c43f57
6 changed files with 22 additions and 7 deletions

View File

@@ -1064,10 +1064,11 @@ int hydra_batch(int role, file_list *to_send)
txlen += 4;
hytxpkt(HPKT_DATA, txbuf, txlen);
#endif
// FIXME: here to decide in PLZ mode to use larger blocks.
if (goodbytes > goodneeded) {
blksize *= 2;
if (blksize > H_MAXBLKLEN) {
blksize = H_MAXBLKLEN;
if (blksize > H_UNCBLKLEN) {
blksize = H_UNCBLKLEN;
}
}
}

View File

@@ -75,8 +75,13 @@
#define XOFF ('S' - '@') /* Ctrl-S (^S) xmit-off character */
#endif
#define H_DLE ('X' - '@') /* Ctrl-X (^X) HYDRA DataLinkEscape */
#define H_UNCBLKLEN 2048 /* Max. uncompressed blocklen */
#define H_MINBLKLEN 64 /* Min. length of a HYDRA data block */
#define H_MAXBLKLEN 2048 /* Max. length of a HYDRA data block */
#define H_MAXBLKLEN 8192 /* Max. length of a HYDRA data block */
/* NB: official is 2048, here we use */
/* this to prepare for receive large */
/* compressed blocks. Uncompressed */
/* we still use 2048 maximum. */
#define H_OVERHEAD 8 /* Max. no. control bytes in a pkt */
#define H_MAXPKTLEN ((H_MAXBLKLEN + H_OVERHEAD + 5) * 3) /* Encoded pkt */
#define H_BUFLEN (H_MAXPKTLEN + 16) /* Buffer sizes: max.enc.pkt + slack */