diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-05-21 12:13:10 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2024-05-21 12:13:10 +0200 |
commit | 875ce0328d1d919d639797972e4cf60c6715503f (patch) | |
tree | f4e91df4545578ca45861d2341a6e89109cca92c /modules/io/examples/echo.hpp | |
parent | af665edfa776fe27221ae357f356f428390b0a0d (diff) |
Fixing up echo builders and names
Diffstat (limited to 'modules/io/examples/echo.hpp')
-rw-r--r-- | modules/io/examples/echo.hpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/modules/io/examples/echo.hpp b/modules/io/examples/echo.hpp index 4eb8084..84416b9 100644 --- a/modules/io/examples/echo.hpp +++ b/modules/io/examples/echo.hpp @@ -1,9 +1,15 @@ #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; + std::array<uint8_t, 256> data; + uint64_t already_read = 0; + uint64_t already_written = 0; }; -constexpr std::string_view message_content = "Hello! This is an echo msg."; +constexpr std::string echo_address = "::1"; +constexpr uint16_t echo_port = 4322; +} |