blkset
const struct blkset *blks, const char *path, int recomp)
blk_match(struct sess *sess, const struct blkset *blks,
blk_recv_ack(char buf[20], const struct blkset *blocks, int32_t idx)
struct blkset *
struct blkset *s;
if ((s = calloc(1, sizeof(struct blkset))) == NULL) {
blk_send_ack(struct sess *sess, int fd, struct blkset *p)
const struct blkset *p, const char *path)
blkhash_set(struct blktab *p, const struct blkset *bset)
memset(&p->blk, 0, sizeof(struct blkset));
struct blkset blk; /* its blocks */
int blkhash_set(struct blktab *, const struct blkset *);
struct blkset *blk_recv(struct sess *, int, const char *);
void blk_recv_ack(char [20], const struct blkset *, int32_t);
void blk_match(struct sess *, const struct blkset *,
int blk_send(struct sess *, int, size_t, const struct blkset *,
int blk_send_ack(struct sess *, int, struct blkset *);
struct blkset *blks; /* the sender's block information */
init_blkset(struct blkset *p, off_t sz)
init_blk(struct blk *p, const struct blkset *set, off_t offs,
struct blkset blk;
memset(&blk, 0, sizeof(struct blkset));