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

Rework dial and accept to return Session #565

Closed
wants to merge 12 commits into from

Conversation

markspanbroek
Copy link
Contributor

This changes Transport.dial() and Transport.accept() to return a Session instead of a Connection. A Connection can be obtained by calling getStream() on the Session object.

This is in preparation for integration of QUIC (#563). In QUIC opening a connection and opening a stream are separate operations.

tests/testswitch.nim Outdated Show resolved Hide resolved
@Menduist
Copy link
Contributor

Menduist commented Jul 1, 2021

I've updated this on the latest unstable, though we should maybe hold off on this for a little while, until we have a better overview of the conn manager
(btw, we apparently need signed commits for unstable, which is good, but could you just setup the signing of commits on your side Mark? thx :) )

@markspanbroek
Copy link
Contributor Author

Latest commit adds direction parameter to Session.getStream(), so that I can support both outgoing and incoming streams in Quic.

@markspanbroek markspanbroek force-pushed the transport-session branch 2 times, most recently from 44bb234 to 9d23e09 Compare August 3, 2021 09:25
@Menduist
Copy link
Contributor

Menduist commented Jun 1, 2022

Closed in favor of #725

@Menduist Menduist closed this Jun 1, 2022
@Menduist Menduist deleted the transport-session branch November 16, 2022 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants