21 lines
489 B
C
21 lines
489 B
C
/***
|
|
* This implements the BitswapNetwork. Members of this network can fill requests and
|
|
* smartly handle queues of local and remote requests.
|
|
*
|
|
* For a somewhat accurate diagram of how this may work, @see https://github.com/ipfs/js-ipfs-bitswap
|
|
*/
|
|
|
|
#include "ipfs/exchange/bitswap/network.h"
|
|
|
|
/***
|
|
* The main loop
|
|
*/
|
|
|
|
/**
|
|
* We received a BitswapMessage from the network
|
|
*/
|
|
|
|
/**
|
|
* We want to pop something off the queue to send to a peer.
|
|
* This can be a wantlist or blocks
|
|
*/
|