+ // Check that we can send up to 65535 bytes without errors
+
+ char large_data[LARGE_SIZE] = "";
+
+ for(int i = 0; i < 3; i++) {
+ assert(meshlink_channel_send(server, channels[i], large_data, sizeof(large_data)) == sizeof(large_data));
+ }
+
+ // Assert that packets larger than 16 MiB are not allowed
+
+ assert(meshlink_channel_send(server, channels[0], large_data, 16777216) == -1);
+