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
3
#include "
MessageTransport.hpp
"
4
5
#include <expected>
6
#include <memory>
7
#include <string>
8
#include <string_view>
9
10
namespace
monopoly::messaging
11
{
12
enum class
TcpSessionMode
{
VoiceSpectators
,
Gameplay
};
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
,
19
TcpSessionMode
mode =
TcpSessionMode::VoiceSpectators
);
20
}
MessageTransport.hpp
index
unsigned index
Definition
ModernIBarSkin.cpp:25
monopoly::messaging
Definition
MessageTransport.hpp:10
monopoly::messaging::openTcpTransport
std::expected< std::unique_ptr< Transport >, std::string > openTcpTransport(bool host, std::string_view address, std::uint16_t port, TcpSessionMode mode)
Definition
TcpMessageTransport.cpp:692
monopoly::messaging::TcpSessionMode
TcpSessionMode
Definition
TcpMessageTransport.hpp:12
monopoly::messaging::TcpSessionMode::VoiceSpectators
@ VoiceSpectators
monopoly::messaging::TcpSessionMode::Gameplay
@ Gameplay
TcpMessageTransport.hpp
Generated by
1.9.8