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:
John Jones 2017-03-19 07:47:19 -05:00
parent 93c4988f90
commit e8b8d06f24
20 changed files with 357 additions and 90 deletions

View file

@ -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;

View file

@ -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;