summaryrefslogtreecommitdiff
path: root/modules/io/examples/echo.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/io/examples/echo.hpp')
-rw-r--r--modules/io/examples/echo.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/io/examples/echo.hpp b/modules/io/examples/echo.hpp
new file mode 100644
index 0000000..2201457
--- /dev/null
+++ b/modules/io/examples/echo.hpp
@@ -0,0 +1,8 @@
+#pragma once
+
+struct message {
+ std::array<uint8_t, 256> data;
+ uint64_t already_read = 0;
+};
+
+constexpr std::string_view message_content = "Hello! This is an echo msg.";