32 Commits

Author SHA1 Message Date
Pierre Krieger
5c1890e66a
Rename libp2p_swarm to libp2p_core (#189) 2018-05-16 12:59:36 +02:00
Pierre Krieger
f787f3d8b8
Swarm rework (#182)
* Rename Transport::RawConn to Output

* Remove AsyncRead + AsyncWrite bound on Transport::Output

* UpgradedNode now always implements Transport

* Add and tweak modifiers for Transport and ConnectionUpgrade

* Secio upgrade now returns the pubkey in its output

* Add upgrade::apply

* Add Transport::and_then

* Rework the swarm

* Rustfmt

* Fix concerns
2018-05-14 15:55:16 +02:00
Pierre Krieger
9a7c278e83
Rename multiplex to libp2p-mplex (#153)
* Rename multiplex to libp2p-multiplex

* Rename multiplex to mplex

* Fmt

* Fix compilation
2018-05-04 15:27:49 +02:00
Toralf Wittner
d346a6f495 Refactor transport into multiple modules. (#170)
Addresses #158.

Besides the refactoring, the type `EitherIncomingStream` has been
removed as it is not used.
2018-05-02 11:50:48 +02:00
Jef
c487b489ce Add buffering to Substream using circular-buffer (#154)
* Add buffering to `Substream` using `circular-buffer`

* Fix freeze and add tests

* Fix tests

* fmt
2018-03-21 15:41:24 +01:00
Pierre Krieger
064706be39
Add logging to the examples (#138) 2018-03-15 16:56:55 +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
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
c60fb982d2
Merge remote-tracking branch 'upstream/master' into websockets 2018-01-10 18:10:57 +01:00
Pierre Krieger
acbe1d0386
No longer use deprecated function Multiaddr::new 2018-01-09 19:16:45 +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
c211d6b96e
Add a websocket transport 2018-01-03 10:30:50 +01:00
Pierre Krieger
3438640907
Change API to allow multiple simultaneous clients 2018-01-03 10:30:26 +01:00
Pierre Krieger
ae0f787e03 Fix concerns 2017-12-18 15:57:51 +01:00
Pierre Krieger
c9f55ceb97 Allow customizing the address in the examples, plus minor improvements 2017-12-18 15:57:51 +01:00
Pierre Krieger
e0aca7e3e3 Remove or_upgrade and let users build OrUpgrade manually 2017-12-18 15:27:06 +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
Pierre Krieger
fda4b37931 Add comments in the examples 2017-12-07 18:06:38 +01:00
Pierre Krieger
4f981e922d Fix concerns 2017-12-07 15:36:03 +01:00
Pierre Krieger
4881c4a6a1 Add a with_simple_protocol_upgrade alternative to with_upgrade 2017-12-07 12:45:02 +01:00
tomaka
16937910c2
Merge pull request #56 from tomaka/secio-api-improvement
Improve the API of the secio crate
2017-12-07 12:16:14 +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
39352b9d10 Rename PlainText to PlainTextConfig 2017-12-04 16:36:58 +01:00
Pierre Krieger
04858839f1 Add a README and documentation for libp2p-tcp-transport 2017-12-04 16:05:37 +01:00
Pierre Krieger
067c0683b5 Rename SecioConnUpgrade to SecioConfig 2017-12-04 15:50:14 +01:00
Pierre Krieger
33025ba22e Improve the API of the secio crate 2017-12-04 15:41:35 +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
Pierre Krieger
fd7b86ddcb listen_on now returns a new Multiaddr on success 2017-11-24 16:10:34 +01:00
tomaka
100f368c9d Implement swarm 2017-11-20 17:03:50 +01:00