version 1.30, 2019/05/08 21:30:11 |
version 1.31, 2019/06/02 17:36:48 |
|
|
off_t curpos; /* sending: position in file to send */ |
off_t curpos; /* sending: position in file to send */ |
off_t curlen; /* sending: length of send */ |
off_t curlen; /* sending: length of send */ |
int32_t curtok; /* sending: next matching token or zero */ |
int32_t curtok; /* sending: next matching token or zero */ |
|
struct blktab *blktab; /* hashtable of blocks */ |
|
uint32_t s1; /* partial sum for computing fast hash */ |
|
uint32_t s2; /* partial sum for computing fast hash */ |
}; |
}; |
|
|
/* |
/* |
|
|
struct upload *upload_alloc(const char *, int, int, size_t, |
struct upload *upload_alloc(const char *, int, int, size_t, |
const struct flist *, size_t, mode_t); |
const struct flist *, size_t, mode_t); |
void upload_free(struct upload *); |
void upload_free(struct upload *); |
|
|
|
struct blktab *blkhash_alloc(void); |
|
int blkhash_set(struct blktab *, const struct blkset *); |
|
void blkhash_free(struct blktab *); |
|
|
struct blkset *blk_recv(struct sess *, int, const char *); |
struct blkset *blk_recv(struct sess *, int, const char *); |
void blk_recv_ack(char [20], const struct blkset *, int32_t); |
void blk_recv_ack(char [20], const struct blkset *, int32_t); |