Chunk Delivery API - Higher Abstraction. More...
#include "chunk.h"
Go to the source code of this file.
Functions | |
int | sendChunk (struct nodeID *to, const struct chunk *c) |
Send a Chunk to a target Peer. | |
int | chunkDeliveryInit (struct nodeID *myID) |
Init the Chunk trading internals. |
Chunk Delivery API - Higher Abstraction.
The Chunk Delivery HA provides the primitives for effective chunks exchange with other peers.
This is a part of the Data Exchange Protocol which provides high level abstraction for sending chunks to a target peers.
int chunkDeliveryInit | ( | struct nodeID * | myID | ) |
Init the Chunk trading internals.
Initialization facility.
myID | address of this peer |
int sendChunk | ( | struct nodeID * | to, | |
const struct chunk * | c | |||
) |
Send a Chunk to a target Peer.
Send a single Chunk to a given Peer
[in] | to | destination peer |
[in] | c | Chunk to send |