1930 Commits

Author SHA1 Message Date
Pierre Krieger
32380a07fe
Use upstream rust-multiaddr (#135) 2018-03-07 18:03:51 +01:00
Jef
5217e29fab
Add rustfmt to travis (#137)
* RFC styling-based `rustfmt.toml`

* Add rustfmt to travis

* Remove rustfmt.toml and actually fix too-long lines instead of ignoring them
2018-03-07 16:20:55 +01:00
Pierre Krieger
e8d29af359
Identify log (#129)
* Add a proper PeerId to Peerstore

* Turn identify into a transport layer

* Expose the dialed multiaddress

* Add identified nodes to the peerstore

* Allow configuring the TTL of the addresses

* Split identify in two modules

* Some comments and tweaks

* Run rustfmt

* Add test and bugfix

* Fix wrong address reported when dialing

* Fix websocket browser code

* Add logging for identify

* Fix concern
2018-03-07 14:24:00 +01:00
Pierre Krieger
22a7159c41
Merge of #116 and #111 (#117)
* Implement ConnectionReuse correctly

* Add some tests and fixes

* Remove useless boolean in active_connections

* Correctly run tests

* Optimize the processing

* Next incoming is now in two steps

* Remove log

* Fix dialing a node even if we already have a connection

* Add a proper PeerId to Peerstore

* Turn identify into a transport layer

* Expose the dialed multiaddress

* Add identified nodes to the peerstore

* Allow configuring the TTL of the addresses

* Split identify in two modules

* Some comments and tweaks

* Run rustfmt

* Add test and bugfix

* Fix wrong address reported when dialing

* Fix websocket browser code

* Ignore errors in the swarm

* Fix multiplex test

* Fix some style concerns

* Fix concerns
2018-03-07 11:51:52 +01:00
Pierre Krieger
39dde305b4
Rework libp2p-identify (#116)
* Add a proper PeerId to Peerstore

* Turn identify into a transport layer

* Expose the dialed multiaddress

* Add identified nodes to the peerstore

* Allow configuring the TTL of the addresses

* Split identify in two modules

* Some comments and tweaks

* Run rustfmt

* Add test and bugfix

* Fix wrong address reported when dialing

* Fix websocket browser code

* Support the p2p protocol in libp2p-identify

* Fix concerns

* Fix libp2p-dns

* More concerns
2018-03-07 10:49:11 +01:00
Pierre Krieger
3b859b6833
Implement libp2p-dns (#132)
* Implement libp2p-dns

* Some docs

* Add test

* Rustfmt on dns

* More work

* Rustfmt on libp2p-dns

* Fix concerns
2018-02-27 17:34:52 +01:00
Pierre Krieger
9faf3fae29 Add logging for libp2p-ping (#128)
* Add logging for libp2p-ping

* Fix concern

* Fix concern again
2018-02-14 18:24:59 +01:00
Pierre Krieger
242702a7a9
Improve and fix nat_traversal for browser websockets (#130)
* Improve and fix nat_traversal for browser websockets

* Also check that remainder of addr is empty

* Fix concerns
2018-02-14 14:46:11 +01:00
Pierre Krieger
025bb04dea Add support for the unimplemented protocols in rust-multiaddr (#123)
* Add support for the unimplemented protocols in rust-multiaddr

* Fix concern
2018-02-14 14:10:55 +01:00
Pierre Krieger
6f450eeef3
Add logging to secio (#127) 2018-02-14 13:02:56 +01:00
Pierre Krieger
8628a59ecf Add a nat_traversal() method to Transport (#110)
* Add a nat_traversal() method to Transport

* Fix compilation
2018-02-08 13:50:16 +01:00
Pierre Krieger
76a08c655d
Remove public key system from peerstore (#118)
* Remove public key system from peerstore

* Add comment about PartialOrd on PeerInfo
2018-02-08 12:22:57 +01:00
Pierre Krieger
c89e68bfb6
Add a proper PeerId to Peerstore (#115) 2018-02-08 12:00:25 +01:00
Pierre Krieger
6179778ba9 Switch to futures-mutex of paritytech (#113) 2018-02-07 15:59:35 +01:00
Pierre Krieger
3c9991cdc9
Test the emscripten code on circle-ci (#119)
* Test the emscripten code on circle-ci

* Fix missing from workflow
2018-01-31 15:10:39 +01:00
Pierre Krieger
641f09d9ae
Try run the echo-dialer on circle-ci (#112)
* Try run the echo-dialer on circle-ci

* Fix attempt

* Fix attempt

* Fix attempt

* Fix attempt

* Fix attempt

* Fix attempt

* Fix attempt

* Fix echo dialer example to actually finish

* Fix the echo examples

* Use a proper image for the echo server

* Fix tag of js-echo-server
2018-01-29 14:59:41 +01:00
Pierre Krieger
c378bcb594
Fix warning in circular-buffer (#114) 2018-01-26 12:53:37 +01:00
Pierre Krieger
1071bfd324
Some integration tests for multiplex-rs (#108)
* Some integration tests for multiplex-rs

* Correctly check that the background thread is ok
2018-01-26 11:40:43 +01:00
Jef
cace5bf577 Fix varint::encode allocating for small inputs (#103)
* Fix `encode` allocating for small inputs

* Fix protocol listener expecting `Vec`
2018-01-24 11:14:17 +01:00
Pierre Krieger
71dae91d15
Properly handle EOF in varint-rs (#106) 2018-01-23 19:23:37 +01:00
Pierre Krieger
bd17f2ea96
Setup CircleCI build (#107)
* Add circleci config file

* Try enable IPv6

* Make sure `test` uses machine executor

* Add an integration_test step in parallel

* Explicit docker runs for machine tests

* Try make the integration test work

* Hide Dockerfile in a subfolder

* Fix the ping example hanging

* Explicitely pass the port to the ping client
2018-01-23 19:21:41 +01:00
Pierre Krieger
1413bb8935
Add an example that pings an IPFS node (#89) 2018-01-23 18:17:23 +01:00
Pierre Krieger
39ce006c93
Merge pull request #105 from tomaka/minor-comment-fix
Minor fixes in the comments of peerstore
2018-01-22 15:15:52 +01:00
Pierre Krieger
ab1151f236
Minor fixes in the comments of peerstore 2018-01-18 11:30:41 +01:00
Pierre Krieger
b7a44e40de
Merge pull request #94 from tomaka/fix-race-condition-futmut
Fix the deadlock in futures-mutex
2018-01-17 13:22:23 +01:00
Pierre Krieger
0534076d77
Merge pull request #93 from tomaka/varint-codec
Add a VarintCodec type
2018-01-15 15:07:58 +01:00
Pierre Krieger
d6028cd5de
Fix bad panic message 2018-01-15 13:26:59 +01:00
Pierre Krieger
ab209edfb3
Add a VarintCodec type 2018-01-15 13:26:58 +01:00
Pierre Krieger
047e33023d
Merge pull request #95 from tomaka/identify-correct-report
Correctly report the address of the dialer in the identify protocol
2018-01-15 13:08:32 +01:00
Pierre Krieger
46e8100635
Merge pull request #96 from tomaka/example-bootstrap
Add an ipfs_bootstrap function to fill the peer store
2018-01-15 13:07:53 +01:00
Pierre Krieger
156b971f34
Fix concerns 2018-01-15 13:07:10 +01:00
Pierre Krieger
f067981cac
Merge pull request #98 from tomaka/rm-println
Remove a println
2018-01-15 12:57:29 +01:00
Pierre Krieger
e57f3059db
Fix the deadlock in futures-mutex 2018-01-15 12:56:44 +01:00
Pierre Krieger
c2d4b75988
Remove Mutex::into_lock 2018-01-15 12:56:42 +01:00
Pierre Krieger
ba85aa6440
Remove a println 2018-01-15 12:36:35 +01:00
Pierre Krieger
a365b9e5f0
Fix concerns 2018-01-15 12:13:17 +01:00
Pierre Krieger
b83ebe3c88
Merge pull request #84 from tomaka/websockets
Add a websocket transport
2018-01-15 12:01:38 +01:00
Pierre Krieger
5d1a214c6d
Fix concern 2018-01-11 16:13:06 +01:00
Pierre Krieger
6c737c61bf
Add support for WSS for dialing 2018-01-11 16:06:11 +01:00
Pierre Krieger
e9ce2e9c62
Add an ipfs_bootstrap function to fill the peer store 2018-01-11 15:15:42 +01:00
Pierre Krieger
6837a3928d
Rustfmt and use tabs 2018-01-11 11:11:49 +01:00
Pierre Krieger
b8829d7cb1
More concerns 2018-01-11 11:07:17 +01:00
Pierre Krieger
2783c5713e
Fix concerns 2018-01-10 18:24:58 +01:00
Pierre Krieger
c60fb982d2
Merge remote-tracking branch 'upstream/master' into websockets 2018-01-10 18:10:57 +01:00
Pierre Krieger
68c8627597
Correctly report the address of the dialer in identify 2018-01-10 17:35:22 +01:00
Pierre Krieger
f45cd87977
Merge pull request #82 from tomaka/rm-multiaddr-new
No longer use deprecated function Multiaddr::new
2018-01-10 11:49:15 +01:00
Pierre Krieger
acbe1d0386
No longer use deprecated function Multiaddr::new 2018-01-09 19:16:45 +01:00
Pierre Krieger
4603061e92
Merge pull request #88 from tomaka/update-echo-example
Update the echo dialer example
2018-01-09 15:57:41 +01:00
Pierre Krieger
30c69030d2
Merge pull request #92 from tomaka/wrong-mulstream-endpoint
Fix using the wrong multistream endpoint
2018-01-09 13:01:09 +01:00
Pierre Krieger
01b474d350
Fix using wrong multistream endpoint 2018-01-09 11:54:35 +01:00