diff options
author | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-10-21 16:21:35 +0200 |
---|---|---|
committer | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-10-21 16:21:35 +0200 |
commit | 545abfe5eb973c83ee38a799add02605c05af26d (patch) | |
tree | fa71c90868317ab75800e2695709d1939dfa31e7 /modules/io-tls/examples/tls_echo.hpp | |
parent | ab8371327296d3435308b21b463fbdb4569d8763 (diff) |
Compiles now, but tls server broken
Diffstat (limited to 'modules/io-tls/examples/tls_echo.hpp')
-rw-r--r-- | modules/io-tls/examples/tls_echo.hpp | 16 |
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; + +} |