refactor: drop GameNetworkManager.h transitive include from Socket.h

This commit is contained in:
MatthewBeshay 2026-04-09 21:57:30 +10:00
parent 0a5cf82d80
commit 9b729ed19e
3 changed files with 6 additions and 4 deletions

View file

@ -22,8 +22,6 @@ class FriendSessionInfo;
class INVITE_INFO;
class INetworkPlayer;
const int NON_QNET_SENDDATA_ACK_REQUIRED = 1;
// This class implements the game-side interface to the networking system. As
// such, it is platform independent and may contain bits of game-side code where
// appropriate. It shouldn't ever reference any platform specifics of the

View file

@ -6,7 +6,6 @@
#include <thread>
#include <vector>
// 4jcraft TODO
#include "app/common/Network/GameNetworkManager.h"
#include "minecraft/network/platform/NetworkPlayerInterface.h"
#include "minecraft/server/network/ServerConnection.h"

View file

@ -10,7 +10,6 @@
#include <mutex>
#include <queue>
#include "app/common/Network/GameNetworkManager.h"
#include "java/InputOutputStream/InputStream.h"
#include "java/InputOutputStream/OutputStream.h"
#include "minecraft/network/platform/NetworkPlayerInterface.h"
@ -21,6 +20,12 @@ class INetworkPlayer;
#define SOCKET_CLIENT_END 0
#define SOCKET_SERVER_END 1
// Flag bit for Socket::SocketOutputStream::writeWithFlags. Marks
// the message as needing positive acknowledgement before the caller
// can consider it delivered. Defined here so consumers don't have to
// drag in the entire CGameNetworkManager header just for this constant.
inline constexpr int NON_QNET_SENDDATA_ACK_REQUIRED = 1;
class SocketAddress;
class ServerConnection;