Commit Graph

164 Commits (master)

Author SHA1 Message Date
Jose Marcial Vieira Bisneto 0b45b25d6e
Changed parameters and arguments. 2017-09-22 11:52:31 -03:00
Jose Marcial Vieira Bisneto 395eb4f031
Improved api_build_http_request implementation. 2017-09-21 23:27:33 -03:00
jmjatlanta 90262ef657 Calling the API from the client for "name resolve" and "name publish" 2017-09-21 18:03:42 -05:00
jmjatlanta c54cf989c0 Filling in more of http_request 2017-09-21 17:10:41 -05:00
jmjatlanta b133a703cc fixed memory leak 2017-09-21 15:30:23 -05:00
jmjatlanta a1b887ba76 Implementation of http_request 2017-09-21 15:27:16 -05:00
Jose Marcial Vieira Bisneto e0d5fed53e
HTTP redirection added in the API. 2017-09-21 11:50:15 -03:00
jmjatlanta b301c7e4d2 Preparing for name resolve and name publish 2017-09-21 09:47:16 -05:00
jmjatlanta 2051f7714a ipfs name command line options processing 2017-09-21 07:51:18 -05:00
Jose Marcial Vieira Bisneto a907f1dd2d
The API changed pthread to scope, so it can load multiple instances. 2017-09-20 14:39:26 -03:00
John Jones 07551151da Fixing of test_core_api_object_cat 2017-09-20 10:50:32 -05:00
jmjatlanta 9a49ddd27b Start of client_api.c 2017-09-20 09:11:01 -05:00
jmjatlanta 81d2252229 Now compiling with api changes 2017-09-20 07:53:36 -05:00
jmjatlanta 794217ed6c method signature changes 2017-09-20 07:40:28 -05:00
jmjatlanta c0419f2424 Adding IpfsNode to api startup 2017-09-20 07:32:12 -05:00
jmjatlanta 262216f6db Merge branch 'master' of https://github.com/Agorise/c-ipfs 2017-09-20 07:02:13 -05:00
jmjatlanta 6db0830c7d Added first cut of get_object 2017-09-20 07:02:00 -05:00
Jose Marcial Vieira Bisneto 87b0d6b13c
Fix the mutex lock when the memory allocation fails in api_listen_thread.
Thanks to John Jones for pointing out the problem.
2017-09-20 08:29:51 -03:00
Jose Marcial Vieira Bisneto 64891c9198
Added initial GET calls. 2017-09-20 08:02:13 -03:00
jmjatlanta 478fa403fd Merge branch 'master' of https://github.com/Agorise/c-ipfs 2017-09-13 05:03:13 -05:00
jmjatlanta d0eb0acc9d Added test for api 2017-09-13 05:02:59 -05:00
Jose Marcial Vieira Bisneto 0b113cb95d
Initial implementation of multipart in API. 2017-09-07 23:59:57 -03:00
John Jones cb1ea3ceff Sorting a memory leak in datastore/journalstore 2017-09-07 11:05:56 -05:00
John Jones 7dbb6fca29 multistream protocol now has a protocol interface 2017-09-04 11:02:48 -05:00
John Jones 407f85bc89 More testing and compat fixes for ipfs 2017-08-31 16:41:10 -05:00
jmjatlanta 1eab27fa0e journalio working, needs tuning 2017-08-31 06:41:54 -05:00
jmjatlanta 49bd61feb1 Testing journalio protocol 2017-08-30 11:10:14 -05:00
jmjatlanta 5678a14eb3 Merge branch 'master' of https://github.com/Agorise/c-ipfs 2017-08-28 06:56:38 -05:00
jmjatlanta 1b69cdf1e8 Implemented client side of journaling protocol 2017-08-28 06:56:22 -05:00
Jose Marcial Vieira Bisneto d66bbdea65 Changed the interpretation of chunked in the API. 2017-08-24 23:13:36 -03:00
jmjatlanta 0bc975dfcf journaling protocol 2017-08-24 10:08:27 -05:00
jmjatlanta 5b242a2d08 An occasional ping to verify connectivity 2017-08-16 08:15:06 -05:00
John Jones 5e8683e64d Cleaning up old code 2017-08-09 12:34:02 -05:00
John Jones 0e24b0a1d3 Fix small memory leak. 2017-08-09 12:26:26 -05:00
jmjatlanta dd69216c75 Shut down handlers when app shuts down 2017-08-09 12:21:03 -05:00
jmjatlanta d226e480c9 Fixing repeated needless sends 2017-08-09 12:09:44 -05:00
jmjatlanta 8944e407e9 Initialize handlers after peerstore and providerstore 2017-08-09 08:14:15 -05:00
John Jones ced96dcf81 IPFS protocols now implement an interface to make marshalling easier 2017-08-09 08:04:17 -05:00
John Jones c58134db1c Fixing memory leaks 2017-08-08 20:40:35 -05:00
jmjatlanta 46b6921ddf added more debugging messages 2017-08-03 17:51:34 -05:00
jmjatlanta b578e5c13a Fixed tests 2017-08-03 14:35:06 -05:00
jmjatlanta d1d4d19fa8 Handling details of bitswap 2017-08-03 11:16:58 -05:00
jmjatlanta e5e565272e Continue to listen to connected peers within bitswap engine 2017-08-02 09:43:27 -05:00
John Jones 9131559a04 correctly handling send of wantlist 2017-08-02 09:04:37 -05:00
Jose Marcial Vieira Bisneto 7632949e30 Implemented chunked transfer encoding. 2017-08-01 21:17:17 -03:00
jmjatlanta fa7a6826b1 Change in secio method signature 2017-07-31 16:36:52 -05:00
jmjatlanta e4f1c9b39c Making providerstore smarter 2017-07-31 12:50:12 -05:00
John Jones d969f48324 implementation of bitswap network receive 2017-07-31 08:16:52 -05:00
John Jones 45c997cd9a Merge branch 'master' of https://github.com/kenCode-de/c-ipfs 2017-07-31 06:43:28 -05:00
John Jones 059a3286c9 More bitswap implementation 2017-07-31 06:43:15 -05:00
Jose Marcial Vieira Bisneto 5941a3593a Added body transmitted directly in the API. 2017-07-28 00:43:36 -03:00
John Jones b3bb857f3a Still testing bitswap 2017-07-27 14:33:19 -05:00
John Jones 73d7d5daed More implementation of bitswap 2017-07-27 12:05:41 -05:00
John Jones 10aa932e08 Unit testing and memory fixes 2017-07-26 09:48:04 -05:00
John Jones 9924d5dcf7 Connecting bitswap and blockstore 2017-07-24 14:56:30 -05:00
Jose Marcial Vieira Bisneto bde4d4debe Initial handling of http request structure. 2017-07-23 22:24:14 -03:00
Jose Marcial Vieira Bisneto f7ddfa0088 Fixed thread-safe in API. 2017-07-23 11:49:40 -03:00
Jose Marcial Vieira Bisneto cce43e2bce Initial API implementation. 2017-07-21 00:40:43 -03:00
John Jones d038b5d6f7 Broke out the marshaling of incoming requests 2017-07-17 14:38:13 -05:00
John Jones 069379acf4 Fix of a few compiler warnings 2017-07-17 13:05:56 -05:00
John Jones 656b0b50b7 Now we can connect using secio. 2017-07-13 18:32:40 -05:00
Jose Marcial Vieira Bisneto 13b8b8bf27 Null routing code reallocated to facilitate routing protocol swap. 2017-07-06 23:51:53 -03:00
Jose Marcial Vieira Bisneto 51639b354a Added ping stats output. 2017-06-07 23:20:00 -03:00
Jose Marcial Vieira Bisneto a2e31f1edd Fixed some memory allocations. 2017-06-06 21:40:10 -03:00
Jose Marcial Vieira Bisneto 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 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 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 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 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 7b61c70639 added logging to daemon 2017-04-03 20:54:03 -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 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 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
John Jones e8b8d06f24 refactoring + beginning of file transfer
Now attempting to use kademlia to find a hash, and NodeIO to transfer
the file
2017-03-19 07:47:19 -05:00
John Jones 93c4988f90 Added utility functions to multiaddress
Parsing of typical IP addresses is now easier
2017-03-09 18:47:27 -05:00
John Jones f494344b15 Adding kademlia routing to daemon 2017-03-09 18:03:21 -05:00
John Jones 43ca313854 Working with secio streams 2017-03-09 12:50:08 -05:00
John Jones 15a8abff9a Made the stream methods more generic 2017-03-09 10:01:09 -05:00
John Jones cd5d347e63 Minor fixes to libp2p 2017-03-06 19:04:14 -05:00
John Jones d4fee344a7 Fixes for connections via secio 2017-03-02 16:18:02 -05:00
John Jones f1aac5d707 Starting to handle get_value request 2017-02-27 12:27:40 -05:00
John Jones 7a6b138444 more ping cleanup and friendly interface to streams 2017-02-23 15:15:33 -05:00