Skip to content
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

New and improved qp2p API #206

Merged
merged 20 commits into from
Feb 12, 2021
Merged

Commits on Feb 11, 2021

  1. feature(default ip) Use localhost as IP.

    Do not bind ever to 0.0.0.0
    dirvine authored and lionel-faber committed Feb 11, 2021
    Configuration menu
    Copy the full SHA
    6777e94 View commit details
    Browse the repository at this point in the history
  2. chore(fmt) cargo fmt

    dirvine authored and lionel-faber committed Feb 11, 2021
    Configuration menu
    Copy the full SHA
    30cacc2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    590c2a4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3c89560 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    083be66 View commit details
    Browse the repository at this point in the history
  6. fix(echo_service): prevent contacting the echo service multiple times

    this can be done by saving the result of the echo service after calling
    it the first time
    
    BREAKING CHANGE
    lionel-faber committed Feb 11, 2021
    Configuration menu
    Copy the full SHA
    f2d27b2 View commit details
    Browse the repository at this point in the history
  7. refactor(example): refactor echo service example to use StructOpt and

    remove chat functionality
    lionel-faber committed Feb 11, 2021
    Configuration menu
    Copy the full SHA
    fcf1ea2 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c9acf77 View commit details
    Browse the repository at this point in the history
  9. feat(api): move all connection handling and message handling internally

    to qp2p
    
    this allows us to provide a simple API that can be used to send/receive
    messages
    lionel-faber committed Feb 11, 2021
    Configuration menu
    Copy the full SHA
    17a7c61 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    aa02c96 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    de24107 View commit details
    Browse the repository at this point in the history
  12. fix(all): remove FIFO queues and use the mpsc channels directly

    - split out the recievers out of the endpoint object
    - fix all tests and doc tests to work with the new API
    lionel-faber committed Feb 11, 2021
    Configuration menu
    Copy the full SHA
    4e6e40b View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    3cf5aee View commit details
    Browse the repository at this point in the history
  14. remove(example): remove echo_service example

    this example is no longer relevant since the echo service is
    automatically handled within the qp2p crate
    lionel-faber committed Feb 11, 2021
    Configuration menu
    Copy the full SHA
    9b402f1 View commit details
    Browse the repository at this point in the history
  15. feat(echo_service): find if peer is externally reachable if external IP

    and port is provided manually
    lionel-faber committed Feb 11, 2021
    Configuration menu
    Copy the full SHA
    7dcba12 View commit details
    Browse the repository at this point in the history
  16. feat(echo_service): perform UPnP and/or echo_service when the endpoint

    is created
    
    - this simplifies the Endpoint::socket_addr() API removing the need of
    a mutable borrow
    lionel-faber committed Feb 11, 2021
    Configuration menu
    Copy the full SHA
    631a19e View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    db83038 View commit details
    Browse the repository at this point in the history
  18. refactor(comms): prevent early exit of control flow when sending an

    event via the streams
    
    - this also prevents the creation of a new connection when send_message
    is called
    lionel-faber committed Feb 11, 2021
    Configuration menu
    Copy the full SHA
    860ea5b View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2021

  1. feat: makes QuicP2p::Endpoint cloneable so that it can more easily be…

    … used across threads.
    
    * modifies ConnectionDeduplicator to use Arc<Mutex<_>> instead of Mutex<_>
    * makes ConnectionDeduplicator cloneable
    dan-da authored and lionel-faber committed Feb 12, 2021
    Configuration menu
    Copy the full SHA
    bd8d21d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4e02196 View commit details
    Browse the repository at this point in the history