23 Commits

Author SHA1 Message Date
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
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
acbe1d0386
No longer use deprecated function Multiaddr::new 2018-01-09 19:16:45 +01:00
Pierre Krieger
6b7fc9508e
Update the echo dialer example 2018-01-04 17:18:49 +01:00
Pierre Krieger
13ba95e282
Separate between listener, dial_to_handler and dial_custom_handler 2018-01-03 15:50:55 +01:00
Pierre Krieger
641f8a09d7
Implement swarm 2018-01-03 15:06:24 +01:00
Pierre Krieger
2339bfd4d3
Fix the documentation libp2p-swarm 2018-01-03 14:24:25 +01:00
Pierre Krieger
47a3a24fcd
Change the MuxedTransport trait 2018-01-03 10:30:39 +01:00
Pierre Krieger
e0aca7e3e3 Remove or_upgrade and let users build OrUpgrade manually 2017-12-18 15:27:06 +01:00
Pierre Krieger
5ddda08170 [WIP] Integrate multiplex in the examples 2017-12-12 12:51:49 +01:00
Pierre Krieger
e7cfc5ab44 Add MuxedTransport trait 2017-12-12 12:51:49 +01:00
Pierre Krieger
3937649300 Distinguish between initiator and receiver 2017-12-11 16:17:05 +01:00
tomaka
857e9fb449
Merge pull request #53 from tomaka/with-simple-protocol-upgrade
Add a with_simple_protocol_upgrade alternative to with_upgrade
2017-12-07 17:04:17 +01:00
Pierre Krieger
4f981e922d Fix concerns 2017-12-07 15:36:03 +01:00
Pierre Krieger
7aacb081d2 More documentation for libp2p-swarm 2017-12-06 16:11:19 +01:00
Pierre Krieger
c6e917073b Fix doctest in libp2p-swarm 2017-12-06 15:26:46 +01:00
Robert Habermeier
81cfc3273b
Merge pull request #59 from tomaka/plain-text-rename
Rename PlainText to PlainTextConfig
2017-12-06 12:15:23 +01:00
Pierre Krieger
3edbff0172 Fix doctests of libp2p-swarm 2017-12-05 10:17:24 +01:00
Pierre Krieger
c4c930ad6d Add documentation and README to libp2p-swarm 2017-12-04 18:49:47 +01:00
Pierre Krieger
39352b9d10 Rename PlainText to PlainTextConfig 2017-12-04 16:36:58 +01:00
Pierre Krieger
b311d66b58 Add muxing trait and architecture 2017-11-30 16:00:49 +01:00
tomaka
100f368c9d Implement swarm 2017-11-20 17:03:50 +01:00