diff options
| author | daoge_cmd <3523206925@qq.com> | 2026-03-04 16:18:47 +0800 |
|---|---|---|
| committer | daoge_cmd <3523206925@qq.com> | 2026-03-04 17:29:43 +0800 |
| commit | d112090fde200c545a70ec5dc33fe91cca0f26ec (patch) | |
| tree | 9adf5fea35a3e1bccb40d94638fdf63f45baedd5 /Minecraft.Client/Windows64/Network/WinsockNetLayer.h | |
| parent | 8ecfc525471720012f36a0016d88a4f0f4cfaa1d (diff) | |
feat: headless server
Diffstat (limited to 'Minecraft.Client/Windows64/Network/WinsockNetLayer.h')
| -rw-r--r-- | Minecraft.Client/Windows64/Network/WinsockNetLayer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Minecraft.Client/Windows64/Network/WinsockNetLayer.h b/Minecraft.Client/Windows64/Network/WinsockNetLayer.h index 029dd0a7..fd1280f7 100644 --- a/Minecraft.Client/Windows64/Network/WinsockNetLayer.h +++ b/Minecraft.Client/Windows64/Network/WinsockNetLayer.h @@ -65,7 +65,7 @@ public: static bool Initialize(); static void Shutdown(); - static bool HostGame(int port); + static bool HostGame(int port, const char* bindIp = NULL); static bool JoinGame(const char* ip, int port); static bool SendToSmallId(BYTE targetSmallId, const void* data, int dataSize); @@ -147,5 +147,8 @@ extern bool g_Win64MultiplayerHost; extern bool g_Win64MultiplayerJoin; extern int g_Win64MultiplayerPort; extern char g_Win64MultiplayerIP[256]; +extern bool g_Win64DedicatedServer; +extern int g_Win64DedicatedServerPort; +extern char g_Win64DedicatedServerBindIP[256]; #endif |
