X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fmeshlink%2B%2B.h;h=93020661b922b21b1c1b43dbc2e7dd105f65138d;hp=8493c1ed71c70d3b1c4f71d5a795b96fa61dc2d9;hb=963c5055505f2fc117cd5efa06eaa02c9b2bf85d;hpb=3febbb4453f5c6b0286e7e3c68a5dbcec975b6fd diff --git a/src/meshlink++.h b/src/meshlink++.h index 8493c1ed..93020661 100644 --- a/src/meshlink++.h +++ b/src/meshlink++.h @@ -993,6 +993,17 @@ public: return meshlink_channel_get_recvq(handle, channel); } + /// Get the maximum segment size of a channel. + /** This returns the amount of bytes that can be sent at once for channels with UDP semantics. + * + * @param channel A handle for the channel. + * + * @return The amount of bytes in the receive buffer. + */ + size_t channel_get_mss(channel *channel) { + return meshlink_channel_get_mss(handle, channel); + }; + /// Enable or disable zeroconf discovery of local peers /** This controls whether zeroconf discovery using the Catta library will be * enabled to search for peers on the local network. By default, it is enabled.