Pierre Krieger
2aa3c94c4e
Documentation improve to ping and minor improvements ( #831 )
2019-01-09 11:39:54 +01:00
Pierre Krieger
b1f2ddd4b5
Floodsub now produces FloodsubEvent ( #823 )
2019-01-07 13:42:47 +01:00
Pierre Krieger
64b388ddd1
Add RawSwarm::incoming_negotiated ( #821 )
...
* Add RawSwarm::incoming_negotiated
* More tweaks
* Docfix
2019-01-07 11:54:42 +01:00
Pierre Krieger
5742a0000e
Add documentation to the core ( #820 )
2019-01-07 11:39:08 +01:00
Pierre Krieger
2eb7fe7c64
Switch libp2p-core to edition 2018 ( #819 )
2019-01-07 11:21:09 +01:00
Pierre Krieger
7a1af7893a
Add back an integration test ( #817 )
2019-01-04 16:54:07 +01:00
Pierre Krieger
438b6753a8
Remove assertions in kad protocol ( #818 )
2019-01-04 16:09:04 +01:00
David
90bafa7b0c
Add a setter for split_send_size
( #801 )
...
* Add a setter for `split_send_size`
* Cap `split_send_size` to the Mplex max of 1Mbyte
2019-01-04 13:25:51 +01:00
Pierre Krieger
7da1a860be
Automatically close useless connections ( #816 )
...
* Automatically close useless connections
* Add a timeout before dropping the connection
* Rework the timeout
* Use OR to combine the outcome
2019-01-04 12:02:39 +01:00
Pierre Krieger
ea0f61366c
Add a Ping behaviour instead of PeriodicPing and PingListen ( #815 )
...
* Add a Ping behaviour instead of PeriodicPing and PingListen
* Fix tests
2019-01-03 20:16:44 +01:00
Pierre Krieger
ba1b3dc5c7
Produce an error if a node is unresponsive ( #814 )
2019-01-03 17:45:37 +01:00
Pierre Krieger
9ca215b1a3
Test on wasm32-unknown-unknown ( #806 )
...
* Test on wasm32-unknown-unknown
* Fix compilation
2019-01-02 15:50:08 +01:00
Pierre Krieger
ad7a3b94ba
Fix compilation with syn 0.15.23 ( #813 )
v0.1.0
2019-01-02 15:16:27 +01:00
Pierre Krieger
bdc071a270
Remove readme = entries in Cargo.toml ( #812 )
2019-01-02 14:52:29 +01:00
Pierre Krieger
2c2fc8bfd3
Don't allow handlers::poll() to return None ( #811 )
2019-01-02 14:22:23 +01:00
Pierre Krieger
f903e2b744
Add version numbers of multi* deps ( #810 )
2019-01-02 13:45:23 +01:00
Pierre Krieger
36c8e9e3f1
Some improvements to k-buckets ( #791 )
...
* Rework the KBucketsPeerId trait
* Remove interior mutability from k-buckets
* Reexport the kbuckets module
* Fix tests
* Apply suggestions from code review
Co-Authored-By: tomaka <pierre.krieger1708@gmail.com>
2019-01-02 13:33:44 +01:00
Pierre Krieger
02e704195b
Also add the node's reported address in mDNS ( #804 )
...
* Also add the node's reported address in mDNS
* Update misc/mdns/src/behaviour.rs
2019-01-02 13:23:58 +01:00
Pierre Krieger
7798e23e78
Add an error associated type to ProtocolsHandler ( #795 )
2018-12-28 15:11:35 +01:00
Pierre Krieger
d10cafa804
Make deriving the NetworkBehaviour more ergonomic ( #782 )
2018-12-20 15:21:13 +01:00
Toralf Wittner
6be3aca768
Cleanup. ( #803 )
...
- Use `Error::source` instead of `Error::cause`.
- Remove unused import.
2018-12-20 13:41:11 +01:00
James Ray
f541df391a
Chore/semi colons ( #799 )
...
* Add helpers for easier Transports creation (#777 )
* Add helpers for easier Transports creation
* Fix doctests
* Fix ' ;' occurrences
2018-12-19 23:22:39 +01:00
Pierre Krieger
83320e0347
More precise error passed to inject_dial_upgrade_error ( #771 )
...
* More precise error passed to inject_dial_upgrade_error
* Fix concerns
* Fix panic proof
2018-12-18 11:23:13 +01:00
Pierre Krieger
af698a1ce7
Update muxers to edition 2018 ( #788 )
...
* Upgrade mplex to edition 2018
* Upgrade yamux to edition 2018
2018-12-18 11:06:37 +01:00
James Ray
60dca37bb7
it -> this ( #784 )
2018-12-17 10:41:56 +01:00
Pierre Krieger
123cfcda02
Add helpers for easier Transports creation ( #777 )
...
* Add helpers for easier Transports creation
* Fix doctests
2018-12-14 10:41:54 +01:00
Pierre Krieger
40a503fd63
Store information about the local node in the topology ( #772 )
...
* Store information about the local node in the topology
* Fix build
* Store the external addresses in the topology
2018-12-13 19:06:13 +01:00
Pierre Krieger
e2ff74994c
Upgrade secio to the 2018 edition ( #774 )
...
* Upgrade secio to the 2018 edition
* Fix build with features on
* Fix emscripten build
2018-12-13 18:54:28 +01:00
Pierre Krieger
7b8e3dd613
Switch ping to edition 2018 ( #780 )
2018-12-13 15:34:35 +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
69684a97b2
More precise errors in the nodes module ( #765 )
...
* More precise errors in the nodes module
* Typo
* Prove the panics
2018-12-11 15:36:41 +01:00
Toralf Wittner
a152e18821
Simplify handling of upgrade information. ( #761 )
2018-12-11 15:13:10 +01:00
Pierre Krieger
2dce4294a0
Add version numbers in the deps in Cargo.toml ( #768 )
2018-12-11 14:54:44 +01:00
Pierre Krieger
581778ba92
Move the transport timeout to libp2p_core ( #764 )
2018-12-11 10:56:24 +01:00
Toralf Wittner
2253c82b86
multistream-select: Update to 2018 edition. ( #766 )
2018-12-11 10:45:28 +01:00
Pierre Krieger
d06eb67353
Add a mDNS network behaviour ( #736 )
...
* Move the MdnsService to a service module
* Add a Mdns behaviour
* Add a Mdns network behaviour
* Add minor documentation
* Add minor todo
* Use nat_traversal on the observed address
* Don't add self to topology
* Automatically connect to nodes we discover
* Add Debug implementations
* Fix example
2018-12-10 16:00:16 +01:00
Pierre Krieger
460f083a0d
Remove weird line from readme ( #763 )
2018-12-10 14:41:31 +01:00
Pierre Krieger
a8a6438fbc
Rename libp2p-tcp-transport to libp2p-tcp ( #762 )
2018-12-10 13:39:11 +01:00
Pierre Krieger
05e4a84da3
Rename PeriodicIdentification to PeriodicIdHandler ( #757 )
...
* Rename PeriodicIdentification to PeriodicIdentificationHandler
* Concern
2018-12-07 19:21:02 +01:00
Pierre Krieger
d94a768bd9
Rename multiaddr and mulithash to parity-* ( #737 )
...
* Rename multiaddr and mulithash to parity-*
* Fix doctests
2018-12-07 15:40:02 +01:00
Pierre Krieger
8d8fc75a4e
Add a dial priority system ( #753 )
2018-12-07 14:43:51 +01:00
Toralf Wittner
dd5fb17a2b
Rename OrUpgrade
to SelectUpgrade
. ( #751 )
...
Also remove `InboundUpgrade.or_inbound` and `OutboundUpgrade.or_outbound`.
2018-12-07 11:39:18 +01:00
James Ray
299758c853
Add a crate doc comment with link to Yamux spec. ( #747 )
2018-12-07 11:18:25 +01:00
James Ray
2fc2a8c918
Add a crate doc comment for floodsub ( #748 )
2018-12-07 10:39:21 +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
Pierre Krieger
2ef4d779ca
Add metadata to all the Cargo.toml ( #743 )
2018-12-06 19:22:06 +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
Toralf Wittner
4140047f34
Avoid some warnings. ( #733 )
...
- mdns: unused `Result` which must be used
- kad: unused import
- mplex: use of deprecated item
2018-12-05 15:01:17 +01:00