-
Notifications
You must be signed in to change notification settings - Fork 107
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
Conversation
Signed-off-by: turuslan <[email protected]>
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}; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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]>
Signed-off-by: turuslan <[email protected]>
Signed-off-by: turuslan <[email protected]>
Signed-off-by: turuslan <[email protected]>
lsquic
to debug problems withnexus
QUIC Transport #227