]> git.meshlink.io Git - meshlink/blobdiff - src/meshlink++.h
Add a way to set the channel's priv pointer when opening it.
[meshlink] / src / meshlink++.h
index f5921363e0dffa550a5a38065bc8eaafc703829f..64673f58cb42dc119ef9eea30e6d2d67826a9b8b 100644 (file)
@@ -732,6 +732,7 @@ public:
         *  @param cb           A pointer to the function which will be called when the remote node sends data to the local node.
         *  @param data         A pointer to a buffer containing data to already queue for sending.
         *  @param len          The length of the data.
+        *                      If len is 0, the data pointer is copied into the channel's priv member.
         *  @param flags        A bitwise-or'd combination of flags that set the semantics for this channel.
         *
         *  @return             A handle for the channel, or NULL in case of an error.
@@ -756,6 +757,7 @@ public:
         *  @param port         The port number the peer wishes to connect to.
         *  @param data         A pointer to a buffer containing data to already queue for sending.
         *  @param len          The length of the data.
+        *                      If len is 0, the data pointer is copied into the channel's priv member.
         *  @param flags        A bitwise-or'd combination of flags that set the semantics for this channel.
         *
         *  @return             A handle for the channel, or NULL in case of an error.