summaryrefslogtreecommitdiff
path: root/modules/io/examples/echo.hpp
blob: 84416b9ec90785ba1cc2c640c9e0584b29a1973a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
};

constexpr std::string echo_address = "::1";
constexpr uint16_t echo_port = 4322;
}