refactoring + beginning of file transfer
Now attempting to use kademlia to find a hash, and NodeIO to transfer the file
This commit is contained in:
parent
93c4988f90
commit
e8b8d06f24
20 changed files with 357 additions and 90 deletions
|
@ -32,7 +32,7 @@ void *ipfs_null_connection (void *ptr)
|
|||
// TODO: multistream + secio + message.
|
||||
// TODO: when should we exit the for loop and disconnect?
|
||||
|
||||
struct SecureSession secure_session;
|
||||
struct SessionContext secure_session;
|
||||
secure_session.insecure_stream = libp2p_net_multistream_stream_new(connection_param->socket);
|
||||
secure_session.default_stream = secure_session.insecure_stream;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ int ipfs_ping (int argc, char **argv)
|
|||
size_t results_size = 0;
|
||||
int port = 0;
|
||||
char* ip = NULL;
|
||||
struct SecureSession session;
|
||||
struct SessionContext session;
|
||||
|
||||
// read the configuration
|
||||
struct FSRepo* fs_repo;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue