-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
transports/quic: Refactor listener handling #17
Commits on May 16, 2022
-
core/transport: remove Transport::Listener
Remove `Transport::Listener: Stream`. Instead require the Transport itself to implement a stream-like API with `Transport::poll`. In case of multiple listeners, transports are now required to handle the multiple listener streams themselves internally.
Configuration menu - View commit details
-
Copy full SHA for f134c8b - Browse repository at this point
Copy the full SHA f134c8bView commit details -
swarm: remove ListenerStream, poll Transport
Remove ListenersStream, instead poll the boxed transport directly in the `Swarm` for `TransportEvent`s (which replace the former `ListenersEvent`s).
Configuration menu - View commit details
-
Copy full SHA for aac9e1c - Browse repository at this point
Copy the full SHA aac9e1cView commit details -
transports/tcp: handle transport changes
Add new struct `GenTcpTransport` as wrapper for `GenTcpConfig` to manage multiple listener streams. This is essentially the old ListenerStream logic from swarm/connection.
Configuration menu - View commit details
-
Copy full SHA for 68663fd - Browse repository at this point
Copy the full SHA 68663fdView commit details -
*: adapt majority of other transports
Adapt majority of helper transports to the new Transport trait. For most transports this just removes the extra *Listener type and instead implements that logic in `Transport::poll`. To adapt the `Boxed` transport the restriction had to be added that transport is `Unpin`. TODO: check if we can solve polling `Boxed` without the inner Transport being unpin.
Configuration menu - View commit details
-
Copy full SHA for 72c76f0 - Browse repository at this point
Copy the full SHA 72c76f0View commit details
Commits on May 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 945c4a0 - Browse repository at this point
Copy the full SHA 945c4a0View commit details
Commits on May 22, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d6f0e75 - Browse repository at this point
Copy the full SHA d6f0e75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 858590f - Browse repository at this point
Copy the full SHA 858590fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 45f9c96 - Browse repository at this point
Copy the full SHA 45f9c96View commit details -
Configuration menu - View commit details
-
Copy full SHA for bfd5fb0 - Browse repository at this point
Copy the full SHA bfd5fb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 90721b9 - Browse repository at this point
Copy the full SHA 90721b9View commit details
Commits on May 26, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 80c3da1 - Browse repository at this point
Copy the full SHA 80c3da1View commit details -
Configuration menu - View commit details
-
Copy full SHA for bcb71a1 - Browse repository at this point
Copy the full SHA bcb71a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 38a2b78 - Browse repository at this point
Copy the full SHA 38a2b78View commit details
Commits on May 29, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 607412d - Browse repository at this point
Copy the full SHA 607412dView commit details -
With `Transport` becoming non-Clone and having `&mut` self receivers, the `Sync` requirement no longer makes any sense and we can thus remove it.
Configuration menu - View commit details
-
Copy full SHA for d7f5019 - Browse repository at this point
Copy the full SHA d7f5019View commit details -
transports/tcp: revert Stream impl for GenTcpTransport
With PR libp2p#2667 the `Sync` trait bound for transport::Boxed is removed. If a tcp transport should be polled as a stream we can now do this via `TcpTransport::new(..)::boxed` and do not need a separate impl of `Stream` for it.
Configuration menu - View commit details
-
Copy full SHA for b4164e8 - Browse repository at this point
Copy the full SHA b4164e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for a7766cd - Browse repository at this point
Copy the full SHA a7766cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9824acd - Browse repository at this point
Copy the full SHA 9824acdView commit details -
Configuration menu - View commit details
-
Copy full SHA for a2988b5 - Browse repository at this point
Copy the full SHA a2988b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2edb0cd - Browse repository at this point
Copy the full SHA 2edb0cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 907a5ab - Browse repository at this point
Copy the full SHA 907a5abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1924c12 - Browse repository at this point
Copy the full SHA 1924c12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ba3c20 - Browse repository at this point
Copy the full SHA 8ba3c20View commit details -
Configuration menu - View commit details
-
Copy full SHA for 96ae97b - Browse repository at this point
Copy the full SHA 96ae97bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c686b5a - Browse repository at this point
Copy the full SHA c686b5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 354d2f0 - Browse repository at this point
Copy the full SHA 354d2f0View commit details -
core/transport: create ListenerId within Transport
Return a ListenerId in Transport::listen_on instead of getting it injected from the outside. Namespace ListenerIds with the Transport's TypeId to avoid clashing IDs when transport generate their ListenerIds independenlty.
Configuration menu - View commit details
-
Copy full SHA for 2226092 - Browse repository at this point
Copy the full SHA 2226092View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f608cd - Browse repository at this point
Copy the full SHA 8f608cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f9ebb7 - Browse repository at this point
Copy the full SHA 5f9ebb7View commit details
Commits on Jun 11, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 199ce12 - Browse repository at this point
Copy the full SHA 199ce12View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27ee9ca - Browse repository at this point
Copy the full SHA 27ee9caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 08f4f80 - Browse repository at this point
Copy the full SHA 08f4f80View commit details -
Configuration menu - View commit details
-
Copy full SHA for f92c2a4 - Browse repository at this point
Copy the full SHA f92c2a4View commit details
Commits on Jun 20, 2022
-
Configuration menu - View commit details
-
Copy full SHA for a357d71 - Browse repository at this point
Copy the full SHA a357d71View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4a745e - Browse repository at this point
Copy the full SHA a4a745eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 81c945c - Browse repository at this point
Copy the full SHA 81c945cView commit details
Commits on Jun 26, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 1c2b9e5 - Browse repository at this point
Copy the full SHA 1c2b9e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for b19e11a - Browse repository at this point
Copy the full SHA b19e11aView commit details -
Configuration menu - View commit details
-
Copy full SHA for c95c97c - Browse repository at this point
Copy the full SHA c95c97cView commit details
Commits on Jun 27, 2022
-
Merge branch 'refactor-transport-trait' of github.com:elenaf9/rust-li…
…bp2p into quic/pull-2652
Configuration menu - View commit details
-
Copy full SHA for 58a85e5 - Browse repository at this point
Copy the full SHA 58a85e5View commit details -
transports/quic: adapt to transport trait changes
Adapt to the transport changes of libp2p#2652. Note: this is only a draft "to make it work", and not a proper implementation. It does not support listening on multiple addresses. The listening logic with multiple Endpoints will need to be supported for the upstream implementation.
Configuration menu - View commit details
-
Copy full SHA for b239de6 - Browse repository at this point
Copy the full SHA b239de6View commit details
Commits on Jul 4, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 3dfb453 - Browse repository at this point
Copy the full SHA 3dfb453View commit details -
Configuration menu - View commit details
-
Copy full SHA for b278d31 - Browse repository at this point
Copy the full SHA b278d31View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f7aed8 - Browse repository at this point
Copy the full SHA 4f7aed8View commit details