Files
NXST/include/nxst/domain/protocol.hpp
T
DragonSpirit a76e06ba4d
CI / Build NRO (push) Failing after 7s
CI / Format check (push) Successful in 38s
CI / Layering check (push) Successful in 3s
CI / Upload release asset (push) Has been skipped
finish refactor, add docs and CI
2026-04-27 02:49:48 +03:00

18 lines
509 B
C++

#pragma once
#include <cstdint>
namespace proto {
constexpr uint16_t TCP_PORT = 8080;
constexpr uint16_t MULTICAST_PORT = 8081;
constexpr char MULTICAST_GROUP[] = "239.0.0.1";
constexpr size_t BUF_SIZE = 65536;
constexpr uint32_t MAX_FILENAME = 4096;
constexpr uint32_t EOF_SENTINEL = 0;
// Wire layout per file:
// [filename_len : uint32_t LE] — 0 == end-of-stream
// [filename : filename_len bytes]
// [file_size : uint64_t LE]
// [file_data : file_size bytes]
} // namespace proto