Commit Graph

15 Commits

Author SHA1 Message Date
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
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
ba85aa6440 Remove a println 2018-01-15 12:36:35 +01:00
Pierre Krieger
c211d6b96e Add a websocket transport 2018-01-03 10:30:50 +01:00
Pierre Krieger
47a3a24fcd Change the MuxedTransport trait 2018-01-03 10:30:39 +01:00
Pierre Krieger
3438640907 Change API to allow multiple simultaneous clients 2018-01-03 10:30:26 +01:00
Pierre Krieger
952e3926c8 Fix concerns 2017-12-18 12:40:16 +01:00
Pierre Krieger
1da2c5015c Properly handle protocol negotiation errors 2017-12-18 12:10:37 +01:00
Vurich
19f0c8f3ef Fix multiplex waking and make it so that inbound streams can be handled concurrently with negotiating the outbound stream 2017-12-14 17:37:32 +01:00
Pierre Krieger
e7cfc5ab44 Add MuxedTransport trait 2017-12-12 12:51:49 +01:00
Pierre Krieger
cd54434fc8 Fix concerns 2017-12-04 12:40:01 +01:00
Pierre Krieger
3396b51214 Run rustfmt on the code and use tabs 2017-12-04 11:44:55 +01:00
Pierre Krieger
91d86eb470 Merge remote-tracking branch 'upstream/master' into muxer-trait 2017-12-04 11:38:38 +01:00
Pierre Krieger
b311d66b58 Add muxing trait and architecture 2017-11-30 16:00:49 +01:00