From 875ce0328d1d919d639797972e4cf60c6715503f Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 21 May 2024 12:13:10 +0200 Subject: Fixing up echo builders and names --- modules/io/examples/echo.hpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'modules/io/examples/echo.hpp') 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 +#include + +namespace saw { struct message { - std::array data; - uint64_t already_read = 0; - uint64_t already_written = 0; + std::array 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; +} -- cgit v1.2.3