Skip to content

lsquic#254

Merged
turuslan merged 12 commits intomasterfrom
lsquic
Oct 5, 2024
Merged

lsquic#254
turuslan merged 12 commits intomasterfrom
lsquic

Conversation

@turuslan
Copy link
Copy Markdown
Contributor

Signed-off-by: turuslan <turuslan.devbox@gmail.com>
@turuslan turuslan requested review from igor-egorov and kamilsa June 21, 2024 08:46
Comment thread src/transport/quic/connection.cpp Outdated
Comment thread src/transport/quic/listener.cpp Outdated
Comment thread src/transport/quic/stream.cpp Outdated
Comment thread src/transport/quic/transport.cpp
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
Copy Markdown
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
Copy Markdown
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

Comment thread cmake/Hunter/init.cmake Outdated
Comment thread include/libp2p/transport/quic/engine.hpp
std::function<void(outcome::result<std::shared_ptr<QuicConnection>>)>;
struct Connecting {
boost::asio::ip::udp::endpoint remote;
PeerId peer;
Copy link
Copy Markdown
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
Copy Markdown
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?

Comment thread include/libp2p/transport/quic/engine.hpp
Comment thread include/libp2p/transport/quic/engine.hpp Outdated
Comment thread src/transport/quic/engine.cpp
Comment thread src/transport/quic/listener.cpp
Comment thread src/transport/quic/stream.cpp
Comment thread src/transport/quic/transport.cpp
Comment thread test/libp2p/transport/quic_test.cpp
Signed-off-by: turuslan <turuslan.devbox@gmail.com>

# Conflicts:
#	cmake/Hunter/init.cmake
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
@turuslan turuslan marked this pull request as ready for review September 27, 2024 12:09
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
Signed-off-by: turuslan <turuslan.devbox@gmail.com>
@turuslan turuslan merged commit 8cb6fe2 into master Oct 5, 2024
@turuslan turuslan deleted the lsquic branch October 5, 2024 12:51
@kamilsa kamilsa mentioned this pull request Apr 8, 2025
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