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

lsquic #254

Merged
merged 12 commits into from
Oct 5, 2024
Merged

lsquic #254

merged 12 commits into from
Oct 5, 2024

Conversation

turuslan
Copy link
Contributor

Signed-off-by: turuslan <[email protected]>
@turuslan turuslan requested review from kamilsa and igor-egorov June 21, 2024 08:46
auto conn_ctx = reinterpret_cast<ConnCtx *>(
lsquic_conn_get_ctx(lsquic_stream_conn(stream)));
// NOLINTNEXTLINE(cppcoreguidelines-owning-memory)
auto stream_ctx = new StreamCtx{self, stream};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it safe to use new here instead of smart pointers?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lsquic C api accepts void * (size_t) user argument, so it doesn't support C++ destructors,
but it provides callbacks which will cleanup these allocations

std::function<void(outcome::result<std::shared_ptr<QuicConnection>>)>;
struct Connecting {
boost::asio::ip::udp::endpoint remote;
PeerId peer;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this also relates to a remote peer

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we rename to endpoint or spell remote_endpoint?

Signed-off-by: turuslan <[email protected]>

# Conflicts:
#	cmake/Hunter/init.cmake
Signed-off-by: turuslan <[email protected]>
Signed-off-by: turuslan <[email protected]>
Signed-off-by: turuslan <[email protected]>
Signed-off-by: turuslan <[email protected]>
Signed-off-by: turuslan <[email protected]>
Signed-off-by: turuslan <[email protected]>
@turuslan turuslan marked this pull request as ready for review September 27, 2024 12:09
Signed-off-by: turuslan <[email protected]>
Signed-off-by: turuslan <[email protected]>
@turuslan turuslan merged commit 8cb6fe2 into master Oct 5, 2024
3 of 4 checks passed
@turuslan turuslan deleted the lsquic branch October 5, 2024 12:51
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