Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
TcpMessageTransport.hpp
Go to the documentation of this file.
1#pragma once
2
4
5#include <expected>
6#include <memory>
7#include <string>
8#include <string_view>
9
10namespace monopoly::messaging
11{
13 // Explicit numeric IPv4 endpoint; no DNS or blocking connection setup in
14 // the render loop. Gameplay admission is finalized by MESS at a safe queue
15 // boundary; legacy voice-only callers retain their spectator capability.
16 // This protocol is native to Modern and is not DirectPlay wire-compatible.
17 [[nodiscard]] std::expected<std::unique_ptr<Transport>, std::string>
18 openTcpTransport(bool host, std::string_view address, std::uint16_t port,
20}
unsigned index
std::expected< std::unique_ptr< Transport >, std::string > openTcpTransport(bool host, std::string_view address, std::uint16_t port, TcpSessionMode mode)