mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-26 21:52:59 +00:00
refactor: drop GameNetworkManager.h transitive include from Socket.h
This commit is contained in:
parent
0a5cf82d80
commit
9b729ed19e
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue