Changes to original code
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
#define PEER_RESPONSE_HEADER_SIZE 9
|
||||
#define MAX_LINE 128
|
||||
|
||||
|
||||
struct RequestHeader
|
||||
{
|
||||
char protocol[4];
|
||||
@@ -112,4 +111,7 @@ int csc_get_peers(csc_ipport_t tracker, csc_hashdata_t cascadehash, csc_ipport_t
|
||||
*/
|
||||
int csc_download_block(csc_ipport_t client, csc_hashdata_t cascadehash, uint64_t blockno, uint64_t blocklength, void* buffer);
|
||||
|
||||
int get_peers_list(csc_peer_t** peers, unsigned char* hash);
|
||||
void get_block(csc_block_t* block, csc_peer_t peer, unsigned char* hash, char* output_file);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user