Toralf Wittner
680c467f7e
Replace protobuf crate with prost! ( #1390 )
...
* Replace protobuf crate with prost!
* Add copyright headers to build.rs files.
* kad: Fix error when mapping connection types.
Co-Authored-By: Pierre Krieger <pierre.krieger1708@gmail.com>
* Fix more mapping mistakes.
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>
2020-01-15 12:02:02 +01:00
Roman Borschel
663c6e4e64
Refactor the Identify protocol. ( #1231 )
...
* Refactor the Identify protocol.
Thereby updating the documentation. The low-level protocol
and handler modules are no longer exposed and some constructors
of the IdentifyEvent renamed.
* Update protocols/identify/src/protocol.rs
Co-Authored-By: Pierre Krieger <pierre.krieger1708@gmail.com>
2019-09-02 11:16:52 +02:00
Pierre Krieger
ec22688f96
Remove IdentifyTransport ( #1220 )
2019-08-12 14:09:40 +02:00
Roman Borschel
eeed66707b
Address edition-2018 idioms. ( #929 )
2019-02-11 14:58:15 +01:00
Pierre Krieger
df923526ca
Embed the topology in the NetworkBehaviour ( #889 )
...
* Embed the topology in the NetworkBehaviour
* Put topologies inside of Floodsub and Kad
* Fix core tests
* Fix chat example
* More work
* Some cleanup
* Restore external addresses system
2019-01-26 23:57:53 +01:00
Pierre Krieger
14a90fd701
Reexport IdentifyInfo ( #877 )
2019-01-22 17:42:15 +01:00
Pierre Krieger
0803e36d5a
Remove PeriodicIdentifyListen and IdentifyListen ( #769 )
...
* Remove PeriodicIdentifyListen and IdentifyListen
* Fix tests
* Fix core-derive
2018-12-13 13:53:19 +01:00
Pierre Krieger
7da651bf32
Add an IdentifyTopology ( #770 )
2018-12-11 17:00:29 +01:00
Pierre Krieger
6b93f02f6d
Add an Identify behaviour ( #741 )
...
* Add an Identify behaviour
* Report observed address in PeriodicIdentify
* Reexport IdentifyEvent
* Concerns
* Concerns
2018-12-07 10:23:38 +01:00
Daogang Tang
371905c876
rename PeriodicIdentifyBehaviour to PeriodicIdentify. ( #738 )
...
* rename PeriodicIdentifyBehaviour to PeriodicIdentify.
Signed-off-by: Daogang Tang <daogangtang@gmail.com>
* fix renaming PeriodicIdentifyBehaviour to PeriodicIdentify in misc/core-derive/tests/test.rs.
Signed-off-by: Daogang Tang <daogangtang@gmail.com>
2018-12-06 13:30:55 +01:00
Pierre Krieger
9102266d70
Rename all the network behaviours to more basic names ( #726 )
...
* Rename FloodsubBehaviour to Floodsub
* Rename Ping behaviours
* Rename identify
2018-12-05 17:04:25 +01:00
Pierre Krieger
9e0f110e47
Remove relay, peerstore and datastore ( #723 )
2018-12-04 14:52:14 +01:00
Pierre Krieger
2c1807b646
Remove Send/Sync/'static requirements in identify ( #649 )
2018-11-16 13:59:56 +01:00
Toralf Wittner
2e549884ef
Split ConnectionUpgrade
. ( #642 )
...
Introduce `InboundUpgrade` and `OutboundUpgrade`.
2018-11-15 17:41:11 +01:00
Pierre Krieger
b3b5a4bdfd
Add an IdentifyListen behaviour ( #626 )
...
* Add an IdentifyListen behaviour
* Use infos() and infos_mut() instead
2018-11-12 17:23:20 +01:00
Pierre Krieger
52ce49da95
Add a PeriodicIdentifyBehaviour ( #617 )
2018-11-09 16:51:07 +01:00
Pierre Krieger
4225d2631b
Add a IdentifyTransport ( #569 )
...
* Add a IdentifyTransport
* Retreiver -> Retriever
* Move the muxer in the IdRetrieverState
2018-11-02 14:23:38 +01:00
Pierre Krieger
9d91217193
Add a PeriodicIdentification protocol handler ( #579 )
...
* Add ProtocolsHandler trait
* Reexport symbols
* Add a note about shutting down
* Add a PeriodicIdentification protocol handler
2018-11-02 10:06:59 +01:00
Pierre Krieger
5d1c54cc10
New core ( #568 )
...
* New core
* Fix lifetime requirements
* Remove identify transport
* Address &mut & ref ref mut
* Fix whitespaces
2018-10-17 10:17:40 +01:00
Benjamin Kampmann
2ea49718f3
Clean up directory structure ( #426 )
...
* Remove unused circular-buffer crate
* Move transports into subdirectory
* Move misc into subdirectory
* Move stores into subdirectory
* Move multiplexers
* Move protocols
* Move libp2p top layer
* Fix Test: skip doctest if secio isn't enabled
2018-08-29 11:24:44 +02:00