Skip to content

Commit 24a0d5a

Browse files
committed
[#4635] Added ownership vs validity
1 parent 5fb0bd2 commit 24a0d5a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/lib/asiolink/udp_socket.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ class UDPSocket : public IOAsioSocket<C> {
9494
/// data asynchronously to the remote endpoint. The callback will be called
9595
/// on completion.
9696
///
97+
/// @note: this uses a boost asio buffer which does not own the data
98+
/// so it is the responsibility of the caller to keep the data valid.
99+
///
97100
/// \param data Data to send
98101
/// \param length Length of data to send
99102
/// \param endpoint Target of the send

0 commit comments

Comments
 (0)