Commit graph

342 commits

Author SHA1 Message Date
f2e7c3c475 Missing null.h 2017-07-07 00:40:39 -03:00
297283168c Make sure don't crash if ipfs_routing_new_kademlia fails. 2017-07-07 00:11:52 -03:00
13b8b8bf27 Null routing code reallocated to facilitate routing protocol swap. 2017-07-06 23:51:53 -03:00
8da685b5cf Implemented timeout to avoid hang due to connection error. 2017-07-06 23:02:11 -03:00
4af0bedba1 Added missing ipfsaddr header. 2017-06-29 21:05:12 -03:00
9f190fb5dc Implemented kademlia bootstrap. 2017-06-29 20:51:24 -03:00
8fb67ec7e1 Changed ping message to use the dialer. 2017-06-22 21:17:43 -03:00
51639b354a Added ping stats output. 2017-06-07 23:20:00 -03:00
a88636ae7e Fixed IPFS_PATH environment var. 2017-06-06 21:42:38 -03:00
a2e31f1edd Fixed some memory allocations. 2017-06-06 21:40:10 -03:00
aa4b433fb0 The sanity check won't attempt to free uninitialized memory. 2017-06-06 19:29:12 -03:00
John Jones
6c936de20e Closing socket descriptor 2017-05-11 14:30:52 -05:00
John Jones
a5e5a71ddd Fixes for various memory leaks 2017-05-11 13:53:52 -05:00
John Jones
d6ee0f7d5d Fixed small memory leak 2017-05-11 07:13:13 -05:00
John Jones
def5331d4c Better handling of locally stored files 2017-05-11 07:04:54 -05:00
John Jones
3de4b757e4 Bugfixes and unit test fixes 2017-04-27 15:52:20 -05:00
John Jones
e756fdf510 Memory and test fixes 2017-04-27 11:35:26 -05:00
John Jones
a991dab1bc Small change to logger cleanup 2017-04-27 00:10:25 -05:00
John Jones
43bf2caeff Tested and made adjustments for large file transfers 2017-04-24 16:33:59 -05:00
John Jones
03696dd6e7 Major changes to support large file transfer 2017-04-20 17:56:03 -05:00
John Jones
a2a08156a7 Added thread pool to aid in clean daemon shutdown 2017-04-17 14:02:33 -05:00
John Jones
427b5c948f Added routines to cleanly shutdown daemon
This still needs more work, but the mechanism now exists
2017-04-17 11:58:47 -05:00
John Jones
2b0a29a06b Implemented find providers from remote peers
Now, you can ask a known node for a key, and it can pass a list of peers
that are perhaps unknownn to the calling peer.
2017-04-16 23:47:53 -05:00
John Jones
62096ffc1c Handling finding of peer via swarm
Also included is a way to pass port and swarm info to methods that build
the config file. This makes testing easier. Multiple peers can be
started on the same machine easily.
2017-04-13 09:31:58 -05:00
John Jones
5d558f5229 Correctly parsing command line parameters for ipfs add 2017-04-06 19:05:30 -05:00
John Jones
794608a7ea Added -c or -config command line parameter
You can now specify the ipfs repository directory from the command line
by using -c [dir] or --config [dir]
2017-04-06 17:46:40 -05:00
John Jones
bc19434490 setting Datastore on SessionContext structure 2017-04-06 09:55:26 -05:00
John Jones
94d6005587 Moved datastore interface from ipfs to libp2p 2017-04-06 09:33:28 -05:00
John Jones
950ad31760 For now, puting bogus, non-zero IP address in due to MultiAddress bug.
The client pays no attention to the IP address anyway. But the
MultiAddress bug needs to be fixed.
2017-04-03 22:02:44 -05:00
John Jones
2efd59cbd5 adding MultiAddress to peer structure sent to remote connection 2017-04-03 21:18:08 -05:00
John Jones
7b61c70639 added logging to daemon 2017-04-03 20:54:03 -05:00
John Jones
089d072736 fixed memory freeing for daemon 2017-04-03 17:31:35 -05:00
John Jones
87cf779704 handling add provider 2017-04-03 17:26:33 -05:00
John Jones
58b5bc8cdd More debugging for segfault 2017-04-03 13:41:26 -05:00
John Jones
624c2280e4 fix of protocol name 2017-04-03 13:26:11 -05:00
John Jones
6f94f7e6c0 Using new logging mechanism 2017-04-03 13:20:35 -05:00
John Jones
396a27d712 Added some debugging info 2017-04-03 12:42:35 -05:00
John Jones
01531693d6 Small adjustment to makefile 2017-04-03 11:58:28 -05:00
John Jones
e90d966e44 Adding network and swarm functionality 2017-04-03 11:55:36 -05:00
John Jones
96b97ad347 Adding network calls to kademlia 2017-03-30 13:59:31 -05:00
John Jones
59af1c0b9e Using config file for bootstrap of kademlia 2017-03-24 16:51:00 -05:00
John Jones
8feb946087 debugging daemon 2017-03-24 14:29:00 -05:00
John Jones
6c64b55176 Added more comments 2017-03-23 15:05:09 -05:00
John Jones
d25e088b7c Built some system tests
Testing the retrieve remote file area using kademlia
2017-03-23 08:28:35 -05:00
John Jones
640e4be5be fix for strtok_r 2017-03-21 13:40:46 -05:00
John Jones
25a2fa0c65 Testing string tokenizer 2017-03-21 12:58:39 -05:00
John Jones
618264c709 Kademlia does not need a separate thread
Kademlia creates its own threads, and does not need a thread to get it
started.
2017-03-21 12:23:54 -05:00
John Jones
83242b0046 minor fixes 2017-03-21 12:11:41 -05:00
John Jones
8edc94509c c99 for centos 2017-03-21 15:20:52 +00:00
John Jones
cfcabaecd0 Finishing NodeIO 2017-03-19 14:40:16 -05:00