We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 037a319 commit 6c9c0ceCopy full SHA for 6c9c0ce
lib/socket_send_to_operation.cpp
@@ -81,7 +81,7 @@ bool cppcoro::net::socket_send_to_operation_impl::try_start(
81
sockaddr_storage destinationAddress = {0};
82
const socklen_t destinationLength = detail::ip_endpoint_to_sockaddr(
83
m_destination, std::ref(destinationAddress));
84
- operation.m_completeFunc = [operation, this]() {
+ operation.m_completeFunc = [operation, destinationAddress, destinationLength, this]() {
85
int res = sendto(
86
m_socket.native_handle(), m_buffer, m_byteCount, 0,
87
reinterpret_cast<const sockaddr*>(&destinationAddress),
0 commit comments