1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 21:13:05 +01:00

Hide the network class declaration to Network.cpp (#8276)

The Network class is not used by anyone other than free functions in
Network.cpp, nor should it be used by anyone with the current design.

This change leaves only the publicly-exposed functions left in the
header, drastically reducing amount of required headers in network.h,
one of the heaviest headers we had so far.
This commit is contained in:
Michał Janiszewski
2018-11-19 23:10:54 +01:00
committed by GitHub
parent 913e75fc65
commit 0d2751a54e
13 changed files with 288 additions and 290 deletions

View File

@@ -14,6 +14,7 @@
# include "../core/String.hpp"
# include "../localisation/Localisation.h"
# include "../platform/platform.h"
# include "TcpSocket.h"
# include "network.h"
constexpr size_t NETWORK_DISCONNECT_REASON_BUFFER_SIZE = 256;