summaryrefslogtreecommitdiff
path: root/modules/io-tls/examples/tls_echo.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/io-tls/examples/tls_echo.hpp')
-rw-r--r--modules/io-tls/examples/tls_echo.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/io-tls/examples/tls_echo.hpp b/modules/io-tls/examples/tls_echo.hpp
new file mode 100644
index 0000000..8ecd5cc
--- /dev/null
+++ b/modules/io-tls/examples/tls_echo.hpp
@@ -0,0 +1,16 @@
+#pragma once
+
+#include <string>
+#include <cstdint>
+
+namespace saw {
+struct message {
+ std::array<uint8_t,256> data;
+ uint64_t already_read = 0;
+ uint64_t already_written = 0;
+};
+
+constexpr std::string echo_address = "::1";
+constexpr uint16_t echo_port = 4332;
+
+}