diff --git a/Sources/Plasma/Apps/plClient/CMakeLists.txt b/Sources/Plasma/Apps/plClient/CMakeLists.txt
index d47f034e..55e903c7 100644
--- a/Sources/Plasma/Apps/plClient/CMakeLists.txt
+++ b/Sources/Plasma/Apps/plClient/CMakeLists.txt
@@ -80,7 +80,6 @@ target_link_libraries(plClient pfConditional)
target_link_libraries(plClient pfConsole)
target_link_libraries(plClient pfConsoleCore)
target_link_libraries(plClient pfCrashHandler)
-target_link_libraries(plClient pfCsrSrv)
target_link_libraries(plClient pfGameGUIMgr)
target_link_libraries(plClient pfGameMgr)
target_link_libraries(plClient pfGameScoreMgr)
@@ -138,7 +137,6 @@ target_link_libraries(plClient plVault)
target_link_libraries(plClient pnAddrInfo)
target_link_libraries(plClient pnAsyncCore)
target_link_libraries(plClient pnAsyncCoreExe)
-target_link_libraries(plClient pnCsrNet)
target_link_libraries(plClient pnDispatch)
target_link_libraries(plClient pnEncryption)
target_link_libraries(plClient pnFactory)
@@ -154,7 +152,6 @@ target_link_libraries(plClient pnNetProtocol)
target_link_libraries(plClient pnNucleusInc)
target_link_libraries(plClient pnProduct)
target_link_libraries(plClient pnSceneObject)
-target_link_libraries(plClient pnSimpleNet)
target_link_libraries(plClient pnTimer)
target_link_libraries(plClient pnUtils)
target_link_libraries(plClient pnUtilsExe)
diff --git a/Sources/Plasma/Apps/plClient/plClient.cpp b/Sources/Plasma/Apps/plClient/plClient.cpp
index d4bbe01c..8a160132 100644
--- a/Sources/Plasma/Apps/plClient/plClient.cpp
+++ b/Sources/Plasma/Apps/plClient/plClient.cpp
@@ -156,8 +156,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "pfSecurePreloader/pfSecurePreloader.h"
#include "pfLocalizationMgr/pfLocalizationMgr.h"
-#include "pfCsrSrv/pfCsrSrv.h"
-
#include "plTweak.h"
#define MSG_LOADING_BAR
@@ -263,8 +261,6 @@ hsBool plClient::Shutdown()
plSynchEnabler ps(false); // disable dirty state tracking during shutdown
delete fProgressBar;
- CsrSrvShutdown();
-
// Just in case, clear this out (trying to fix a crash bug where this is still active at shutdown)
plDispatch::SetMsgRecieveCallback(nil);
@@ -2544,8 +2540,6 @@ void plClient::ICompleteInit () {
plClientMsg* clientMsg = new plClientMsg(plClientMsg::kInitComplete);
clientMsg->SetBCastFlag(plMessage::kBCastByType);
clientMsg->Send();
-
- CsrSrvInitialize();
}
//============================================================================
diff --git a/Sources/Plasma/Apps/plUruLauncher/CMakeLists.txt b/Sources/Plasma/Apps/plUruLauncher/CMakeLists.txt
index 758f828b..65228010 100644
--- a/Sources/Plasma/Apps/plUruLauncher/CMakeLists.txt
+++ b/Sources/Plasma/Apps/plUruLauncher/CMakeLists.txt
@@ -53,7 +53,6 @@ target_link_libraries(plUruLauncher pnNetCli)
target_link_libraries(plUruLauncher pnNetCommon)
target_link_libraries(plUruLauncher pnNetProtocol)
target_link_libraries(plUruLauncher pnProduct)
-target_link_libraries(plUruLauncher pnSimpleNet)
target_link_libraries(plUruLauncher pnTimer)
target_link_libraries(plUruLauncher pnUtils)
target_link_libraries(plUruLauncher pnUtilsExe)
diff --git a/Sources/Plasma/FeatureLib/CMakeLists.txt b/Sources/Plasma/FeatureLib/CMakeLists.txt
index 2847d970..85a3dd63 100644
--- a/Sources/Plasma/FeatureLib/CMakeLists.txt
+++ b/Sources/Plasma/FeatureLib/CMakeLists.txt
@@ -9,7 +9,6 @@ add_subdirectory(pfConditional)
add_subdirectory(pfConsole)
add_subdirectory(pfConsoleCore)
add_subdirectory(pfCrashHandler)
-add_subdirectory(pfCsrSrv)
add_subdirectory(pfGameGUIMgr)
add_subdirectory(pfGameMgr)
add_subdirectory(pfGameScoreMgr)
diff --git a/Sources/Plasma/FeatureLib/pfConsoleCore/pfConsoleCommandsCore.cpp b/Sources/Plasma/FeatureLib/pfConsoleCore/pfConsoleCommandsCore.cpp
index 3bdf7f76..36d16c3c 100644
--- a/Sources/Plasma/FeatureLib/pfConsoleCore/pfConsoleCommandsCore.cpp
+++ b/Sources/Plasma/FeatureLib/pfConsoleCore/pfConsoleCommandsCore.cpp
@@ -179,57 +179,6 @@ PF_CONSOLE_CMD(
}
-//============================================================================
-// Server.Csr group
-PF_CONSOLE_SUBGROUP(Server, Csr)
-
-//============================================================================
-PF_CONSOLE_CMD(
- Server_Csr,
- Host,
- "string address",
- "Set the Csr Server address"
-) {
- SetCsrSrvHostname(params[0]);
-}
-
-//============================================================================
-PF_CONSOLE_CMD(
- Server_Csr,
- N,
- "string base64Key",
- "Set the Csr Server N key"
-) {
- int baseLength = hsStrlen((const char *)params[0]);
- if ((kNetDiffieHellmanKeyBits / 8) != Base64DecodeSize(baseLength, (const char *)params[0])) {
- PrintStringF(PrintString, "Invalid key: should be exactly %u bytes",
- kNetDiffieHellmanKeyBits / 8);
- return;
- }
-
- Base64Decode(hsStrlen((const char *)params[0]), (const char *)params[0],
- kNetDiffieHellmanKeyBits / 8, kCsrDhNData);
-}
-
-//============================================================================
-PF_CONSOLE_CMD(
- Server_Csr,
- X,
- "string base64Key",
- "Set the Csr Server X key"
-) {
- int baseLength = hsStrlen((const char *)params[0]);
- if ((kNetDiffieHellmanKeyBits / 8) != Base64DecodeSize(baseLength, (const char *)params[0])) {
- PrintStringF(PrintString, "Invalid key: should be exactly %u bytes",
- kNetDiffieHellmanKeyBits / 8);
- return;
- }
-
- Base64Decode(hsStrlen((const char *)params[0]), (const char *)params[0],
- kNetDiffieHellmanKeyBits / 8, kCsrDhXData);
-}
-
-
//============================================================================
// Server.Game group
PF_CONSOLE_SUBGROUP(Server, Game)
diff --git a/Sources/Plasma/FeatureLib/pfCsrSrv/CMakeLists.txt b/Sources/Plasma/FeatureLib/pfCsrSrv/CMakeLists.txt
deleted file mode 100644
index dafa4cb6..00000000
--- a/Sources/Plasma/FeatureLib/pfCsrSrv/CMakeLists.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-include_directories(../../CoreLib)
-include_directories(../../FeatureLib)
-include_directories(../../NucleusLib)
-include_directories(../../NucleusLib/inc)
-include_directories(../../PubUtilLib)
-
-set(pfCsrSrv_SOURCES
- pfCsrSrv.cpp
-)
-
-set(pfCsrSrv_HEADERS
- Pch.h
- pfCsrSrv.h
-)
-
-add_library(pfCsrSrv STATIC ${pfCsrSrv_SOURCES} ${pfCsrSrv_HEADERS})
-
-source_group("Source Files" FILES ${pfCsrSrv_SOURCES})
-source_group("Header Files" FILES ${pfCsrSrv_HEADERS})
diff --git a/Sources/Plasma/FeatureLib/pfCsrSrv/Pch.h b/Sources/Plasma/FeatureLib/pfCsrSrv/Pch.h
deleted file mode 100644
index 14e72837..00000000
--- a/Sources/Plasma/FeatureLib/pfCsrSrv/Pch.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/*==LICENSE==*
-
-CyanWorlds.com Engine - MMOG client, server and tools
-Copyright (C) 2011 Cyan Worlds, Inc.
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see .
-
-Additional permissions under GNU GPL version 3 section 7
-
-If you modify this Program, or any covered work, by linking or
-combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK,
-NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent
-JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK
-(or a modified version of those libraries),
-containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA,
-PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
-JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
-licensors of this Program grant you additional
-permission to convey the resulting work. Corresponding Source for a
-non-source form of such a combination shall include the source code for
-the parts of OpenSSL and IJG JPEG Library used as well as that of the covered
-work.
-
-You can contact Cyan Worlds, Inc. by email legal@cyan.com
- or by snail mail at:
- Cyan Worlds, Inc.
- 14617 N Newport Hwy
- Mead, WA 99021
-
-*==LICENSE==*/
-/*****************************************************************************
-*
-* $/Plasma20/Sources/Plasma/FeatureLib/pfCsrSrv/Pch.h
-*
-***/
-
-#ifdef PLASMA20_SOURCES_PLASMA_FEATURELIB_PFCSRSRV_PCH_H
-#error "Header $/Plasma20/Sources/Plasma/FeatureLib/pfCsrSrv/Pch.h included more than once"
-#endif
-#define PLASMA20_SOURCES_PLASMA_FEATURELIB_PFCSRSRV_PCH_H
-
-
-#include "pfCsrSrv.h"
-
-#pragma warning(push, 0)
-#include "pfConsole/pfConsole.h"
-#pragma warning(pop)
diff --git a/Sources/Plasma/FeatureLib/pfCsrSrv/pfCsrSrv.cpp b/Sources/Plasma/FeatureLib/pfCsrSrv/pfCsrSrv.cpp
deleted file mode 100644
index 3c4c5a14..00000000
--- a/Sources/Plasma/FeatureLib/pfCsrSrv/pfCsrSrv.cpp
+++ /dev/null
@@ -1,160 +0,0 @@
-/*==LICENSE==*
-
-CyanWorlds.com Engine - MMOG client, server and tools
-Copyright (C) 2011 Cyan Worlds, Inc.
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see .
-
-Additional permissions under GNU GPL version 3 section 7
-
-If you modify this Program, or any covered work, by linking or
-combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK,
-NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent
-JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK
-(or a modified version of those libraries),
-containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA,
-PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
-JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
-licensors of this Program grant you additional
-permission to convey the resulting work. Corresponding Source for a
-non-source form of such a combination shall include the source code for
-the parts of OpenSSL and IJG JPEG Library used as well as that of the covered
-work.
-
-You can contact Cyan Worlds, Inc. by email legal@cyan.com
- or by snail mail at:
- Cyan Worlds, Inc.
- 14617 N Newport Hwy
- Mead, WA 99021
-
-*==LICENSE==*/
-/*****************************************************************************
-*
-* $/Plasma20/Sources/Plasma/FeatureLib/pfCsrSrv/pfCsrSrv.cpp
-*
-***/
-
-#include "Pch.h"
-#pragma hdrstop
-
-
-/*****************************************************************************
-*
-* Local types
-*
-***/
-
-/*****************************************************************************
-*
-* Local data
-*
-***/
-
-static bool s_running;
-
-
-/*****************************************************************************
-*
-* Local functions
-*
-***/
-
-//============================================================================
-static bool Recv_ExecConsoleCmd (
- SimpleNetConn * ,
- CsrNet_ExecConsoleCmd * msg
-) {
- LogMsg(kLogPerf, L"pfCsrSrv: ExecConsoleCmd: %S", msg->cmd);
-
- pfConsole::RunCommandAsync(msg->cmd);
-
- return true;
-}
-
-//============================================================================
-static bool OnMsg (
- SimpleNetConn * conn,
- SimpleNet_MsgHeader * msg
-) {
- bool result;
-
- #define DISPATCH(a) case kCsrNet_##a: result = Recv_##a(conn, (CsrNet_##a *) msg); break
- switch (msg->messageId) {
- DISPATCH(ExecConsoleCmd);
- default:
- result = false;
- }
- #undef DISPATCH
-
- return result;
-}
-
-//============================================================================
-static void OnError (
- SimpleNetConn * ,
- ENetError error
-) {
- LogMsg(kLogPerf, L"pfCsrSrv NetError: %s", NetErrorToString(error));
-}
-
-//============================================================================
-static bool QueryAccept (
- void * ,
- unsigned channel,
- SimpleNetConn * ,
- const plNetAddress& addr
-) {
- plString str = addr.AsString();
- LogMsg(kLogPerf, L"pfCsrSrv: Accepted connection from %s", str.c_str());
- return channel == kSimpleNetChannelCsr;
-}
-
-
-/*****************************************************************************
-*
-* Exports
-*
-***/
-
-//============================================================================
-void CsrSrvInitialize () {
-
-#ifdef PLASMA_ENABLE_CSR_EXTERNAL
-
- LogMsg(kLogPerf, L"pfCsrSrv: Initializing");
-
- s_running = true;
-
- SimpleNetInitialize();
- SimpleNetCreateChannel(kSimpleNetChannelCsr, OnMsg, OnError);
- SimpleNetStartListening(QueryAccept, nil);
-
-#endif
-}
-
-//============================================================================
-void CsrSrvShutdown () {
-
-#ifdef PLASMA_ENABLE_CSR_EXTERNAL
-
- LogMsg(kLogPerf, L"pfCsrSrv: Shutting down");
-
- s_running = false;
-
- SimpleNetStopListening();
- SimpleNetDestroyChannel(kSimpleNetChannelCsr);
- SimpleNetShutdown();
-
-#endif
-}
diff --git a/Sources/Plasma/FeatureLib/pfCsrSrv/pfCsrSrv.h b/Sources/Plasma/FeatureLib/pfCsrSrv/pfCsrSrv.h
deleted file mode 100644
index bd39e8e0..00000000
--- a/Sources/Plasma/FeatureLib/pfCsrSrv/pfCsrSrv.h
+++ /dev/null
@@ -1,66 +0,0 @@
-/*==LICENSE==*
-
-CyanWorlds.com Engine - MMOG client, server and tools
-Copyright (C) 2011 Cyan Worlds, Inc.
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see .
-
-Additional permissions under GNU GPL version 3 section 7
-
-If you modify this Program, or any covered work, by linking or
-combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK,
-NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent
-JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK
-(or a modified version of those libraries),
-containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA,
-PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
-JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
-licensors of this Program grant you additional
-permission to convey the resulting work. Corresponding Source for a
-non-source form of such a combination shall include the source code for
-the parts of OpenSSL and IJG JPEG Library used as well as that of the covered
-work.
-
-You can contact Cyan Worlds, Inc. by email legal@cyan.com
- or by snail mail at:
- Cyan Worlds, Inc.
- 14617 N Newport Hwy
- Mead, WA 99021
-
-*==LICENSE==*/
-/*****************************************************************************
-*
-* $/Plasma20/Sources/Plasma/FeatureLib/pfCsrSrv/pfCsrSrv.h
-*
-***/
-
-#ifndef PLASMA20_SOURCES_PLASMA_FEATURELIB_PFCSRSRV_PFCSRSRV_H
-#define PLASMA20_SOURCES_PLASMA_FEATURELIB_PFCSRSRV_PFCSRSRV_H
-
-
-#include "pnCsrNet/pnCsrNet.h"
-
-
-/*****************************************************************************
-*
-* pfCsrSrv
-* - Executes remote CSR commands received through pnCsrNet
-*
-***/
-
-void CsrSrvInitialize ();
-void CsrSrvShutdown ();
-
-
-#endif // PLASMA20_SOURCES_PLASMA_FEATURELIB_PFCSRSRV_PFCSRSRV_H
diff --git a/Sources/Plasma/NucleusLib/CMakeLists.txt b/Sources/Plasma/NucleusLib/CMakeLists.txt
index bbaebdea..06e94361 100644
--- a/Sources/Plasma/NucleusLib/CMakeLists.txt
+++ b/Sources/Plasma/NucleusLib/CMakeLists.txt
@@ -4,8 +4,6 @@ add_subdirectory(inc)
add_subdirectory(pnAddrInfo)
add_subdirectory(pnAsyncCore)
add_subdirectory(pnAsyncCoreExe)
-#add_subdirectory(pnCsrCli) # Not being used in any current sln
-add_subdirectory(pnCsrNet)
add_subdirectory(pnDispatch)
add_subdirectory(pnEncryption)
add_subdirectory(pnFactory)
@@ -20,7 +18,6 @@ add_subdirectory(pnNetCommon)
add_subdirectory(pnNetProtocol)
add_subdirectory(pnProduct)
add_subdirectory(pnSceneObject)
-add_subdirectory(pnSimpleNet)
add_subdirectory(pnTimer)
add_subdirectory(pnUtils)
add_subdirectory(pnUtilsExe)
diff --git a/Sources/Plasma/NucleusLib/pnAsyncCore/Private/pnAcIo.h b/Sources/Plasma/NucleusLib/pnAsyncCore/Private/pnAcIo.h
index 5fd04990..4d22c11e 100644
--- a/Sources/Plasma/NucleusLib/pnAsyncCore/Private/pnAcIo.h
+++ b/Sources/Plasma/NucleusLib/pnAsyncCore/Private/pnAcIo.h
@@ -162,8 +162,8 @@ enum EConnType {
kConnTypeSrvToState = 17,
kConnTypeSrvToLog = 18,
kConnTypeSrvToScore = 19,
- kConnTypeCliToCsr = 20,
- kConnTypeSimpleNet = 21,
+ kConnTypeCliToCsr = 20, // DEAD
+ kConnTypeSimpleNet = 21, // DEAD
kConnTypeCliToGateKeeper = 22,
// Text connections
diff --git a/Sources/Plasma/NucleusLib/pnCsrCli/CMakeLists.txt b/Sources/Plasma/NucleusLib/pnCsrCli/CMakeLists.txt
deleted file mode 100644
index da5b045d..00000000
--- a/Sources/Plasma/NucleusLib/pnCsrCli/CMakeLists.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-include_directories(../../CoreLib)
-include_directories(../../NucleusLib)
-
-set(pnCsrCli_SOURCES
- pnCsrCli.cpp
-)
-
-set(pnCsrCli_HEADERS
- Pch.h
- pnCsrCli.h
-)
-
-add_library(pnCsrCli STATIC ${pnCsrCli_SOURCES} ${pnCsrCli_HEADERS})
-
-source_group("Source Files" FILES ${pnCsrCli_SOURCES})
-source_group("Header Files" FILES ${pnCsrCli_HEADERS})
\ No newline at end of file
diff --git a/Sources/Plasma/NucleusLib/pnCsrCli/Pch.h b/Sources/Plasma/NucleusLib/pnCsrCli/Pch.h
deleted file mode 100644
index fe3ec30d..00000000
--- a/Sources/Plasma/NucleusLib/pnCsrCli/Pch.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/*==LICENSE==*
-
-CyanWorlds.com Engine - MMOG client, server and tools
-Copyright (C) 2011 Cyan Worlds, Inc.
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see .
-
-Additional permissions under GNU GPL version 3 section 7
-
-If you modify this Program, or any covered work, by linking or
-combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK,
-NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent
-JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK
-(or a modified version of those libraries),
-containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA,
-PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
-JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
-licensors of this Program grant you additional
-permission to convey the resulting work. Corresponding Source for a
-non-source form of such a combination shall include the source code for
-the parts of OpenSSL and IJG JPEG Library used as well as that of the covered
-work.
-
-You can contact Cyan Worlds, Inc. by email legal@cyan.com
- or by snail mail at:
- Cyan Worlds, Inc.
- 14617 N Newport Hwy
- Mead, WA 99021
-
-*==LICENSE==*/
-/*****************************************************************************
-*
-* $/Plasma20/Sources/Plasma/NucleusLib/pnCsrCli/Pch.h
-*
-***/
-
-#ifdef PLASMA20_SOURCES_PLASMA_NUCLEUSLIB_PNCSRCLI_PCH_H
-#error "Header $/Plasma20/Sources/Plasma/NucleusLib/pnCsrCli/Pch.h included more than once"
-#endif
-#define PLASMA20_SOURCES_PLASMA_NUCLEUSLIB_PNCSRCLI_PCH_H
-
-
-#include "pnCsrCli.h"
-
-#include
diff --git a/Sources/Plasma/NucleusLib/pnCsrCli/pnCsrCli.cpp b/Sources/Plasma/NucleusLib/pnCsrCli/pnCsrCli.cpp
deleted file mode 100644
index de85ebf0..00000000
--- a/Sources/Plasma/NucleusLib/pnCsrCli/pnCsrCli.cpp
+++ /dev/null
@@ -1,269 +0,0 @@
-/*==LICENSE==*
-
-CyanWorlds.com Engine - MMOG client, server and tools
-Copyright (C) 2011 Cyan Worlds, Inc.
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see .
-
-Additional permissions under GNU GPL version 3 section 7
-
-If you modify this Program, or any covered work, by linking or
-combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK,
-NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent
-JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK
-(or a modified version of those libraries),
-containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA,
-PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
-JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
-licensors of this Program grant you additional
-permission to convey the resulting work. Corresponding Source for a
-non-source form of such a combination shall include the source code for
-the parts of OpenSSL and IJG JPEG Library used as well as that of the covered
-work.
-
-You can contact Cyan Worlds, Inc. by email legal@cyan.com
- or by snail mail at:
- Cyan Worlds, Inc.
- 14617 N Newport Hwy
- Mead, WA 99021
-
-*==LICENSE==*/
-/*****************************************************************************
-*
-* $/Plasma20/Sources/Plasma/NucleusLib/pnCsrCli/pnCsrCli.cpp
-*
-***/
-
-#include "Pch.h"
-#pragma hdrstop
-
-
-/*****************************************************************************
-*
-* Local types
-*
-***/
-
-
-/*****************************************************************************
-*
-* Local data
-*
-***/
-
-static bool s_running;
-static CCritSect s_critsect;
-static SimpleNetConn * s_conn;
-static FCsrCliOnError s_onError;
-
-
-/*****************************************************************************
-*
-* Local functions
-*
-***/
-
-//============================================================================
-static SimpleNetConn * GetConnIncRef () {
-
- SimpleNetConn * conn;
- s_critsect.Enter();
- {
- if (nil != (conn = s_conn))
- SimpleNetConnIncRef(conn);
- }
- s_critsect.Leave();
- return conn;
-}
-
-//============================================================================
-static bool SimpleNetOnMsg (
- SimpleNetConn * ,
- SimpleNet_MsgHeader *
-) {
- LogMsg(kLogPerf, L"pnCsrCli: Rcvd unexpected message from peer");
- return false;
-}
-
-//============================================================================
-static void SimpleNetOnError (
- SimpleNetConn * ,
- ENetError error
-) {
- if (!s_running)
- return;
-
- LogMsg(kLogPerf, L"pnCsrCli: NetError: %s", NetErrorToString(error));
-
- if (error == kNetErrDisconnected)
- CsrCliDisconnect();
-
- s_onError(error);
-}
-
-//============================================================================
-static void SimpleNetOnConnect (
- void * param,
- SimpleNetConn * conn,
- ENetError result
-) {
- FCsrCliOnConnect onConnect = (FCsrCliOnConnect)param;
-
- LogMsg(kLogPerf, L"pnCsrCli: OnConnect: %s", NetErrorToString(result));
-
- if (s_conn)
- CsrCliDisconnect();
-
- if (IS_NET_SUCCESS(result)) {
- s_critsect.Enter();
- {
- s_conn = conn;
- }
- s_critsect.Leave();
- }
-
- if (onConnect)
- onConnect(result);
-}
-
-//============================================================================
-static void Send_ExecConsoleCmd (const char cmd[]) {
-
- SimpleNetConn * conn = GetConnIncRef();
- if (!conn)
- return;
-
- unsigned cmdBytes = StrBytes(cmd);
-
- CsrNet_ExecConsoleCmd * msg;
-
- unsigned msgBytes
- = sizeof(*msg)
- - sizeof(msg->cmd)
- + cmdBytes
- + sizeof(cmd[0])
- ;
-
- msg = new(_alloca(msgBytes)) CsrNet_ExecConsoleCmd();
- msg->messageBytes = msgBytes;
-
- StrCopy(msg->cmd, cmd, cmdBytes / sizeof(cmd[0]));
- msg->cmd[cmdBytes] = 0;
-
- SimpleNetSend(conn, msg);
- SimpleNetConnDecRef(conn);
-}
-
-
-/*****************************************************************************
-*
-* Exports
-*
-***/
-
-//============================================================================
-void CsrCliInitialize (FCsrCliOnError onError) {
-
- ASSERT(!s_running);
- ASSERT(onError);
-
- s_running = true;
- s_onError = onError;
-
- SimpleNetInitialize();
- SimpleNetCreateChannel(kSimpleNetChannelCsr, SimpleNetOnMsg, SimpleNetOnError);
-};
-
-//============================================================================
-void CsrCliShutdown () {
-
- s_running = false;
- s_onError = nil;
-
- CsrCliDisconnect();
- SimpleNetDestroyChannel(kSimpleNetChannelCsr);
- SimpleNetShutdown();
-}
-
-//============================================================================
-void CsrCliStartConnecting (
- const wchar_t addr[],
- FCsrCliOnConnect onConnect
-) {
- ASSERT(s_running);
-
- CsrCliDisconnect();
- SimpleNetStartConnecting(kSimpleNetChannelCsr, addr, SimpleNetOnConnect, onConnect);
-}
-
-//============================================================================
-void CsrCliDisconnect () {
-
- SimpleNetConn * conn = nil;
- s_critsect.Enter();
- {
- SWAP(conn, s_conn);
- }
- s_critsect.Leave();
- if (conn)
- SimpleNetDisconnect(conn);
-}
-
-//============================================================================
-void CsrCliToggleAvatarPhysical () {
-
- ASSERT(s_running);
-
- Send_ExecConsoleCmd("Avatar.Physics.TogglePhysical");
-}
-
-//============================================================================
-void CsrCliWarpPlayerHere (unsigned playerId) {
-
- ASSERT(s_running);
-
- char cmd[1024];
- StrPrintf(cmd, arrsize(cmd), "CCR.WarpPlayerHere %u", playerId);
- Send_ExecConsoleCmd(cmd);
-}
-
-//============================================================================
-void CsrCliWarpToPlayer (unsigned playerId) {
-
- ASSERT(s_running);
-
- char cmd[1024];
- StrPrintf(cmd, arrsize(cmd), "CCR.WarpToPlayer %u", playerId);
- Send_ExecConsoleCmd(cmd);
-}
-
-//============================================================================
-void CsrCliLinkPlayerHere (unsigned playerId) {
-
- ASSERT(s_running);
-
- char cmd[1024];
- StrPrintf(cmd, arrsize(cmd), "CCR.LinkPlayerHere %u", playerId);
- Send_ExecConsoleCmd(cmd);
-}
-
-//============================================================================
-void CsrCliLinkToPlayer (unsigned playerId) {
-
- ASSERT(s_running);
-
- char cmd[1024];
- StrPrintf(cmd, arrsize(cmd), "CCR.LinkToPlayer %u", playerId);
- Send_ExecConsoleCmd(cmd);
-}
diff --git a/Sources/Plasma/NucleusLib/pnCsrCli/pnCsrCli.h b/Sources/Plasma/NucleusLib/pnCsrCli/pnCsrCli.h
deleted file mode 100644
index 2a123f07..00000000
--- a/Sources/Plasma/NucleusLib/pnCsrCli/pnCsrCli.h
+++ /dev/null
@@ -1,83 +0,0 @@
-/*==LICENSE==*
-
-CyanWorlds.com Engine - MMOG client, server and tools
-Copyright (C) 2011 Cyan Worlds, Inc.
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see .
-
-Additional permissions under GNU GPL version 3 section 7
-
-If you modify this Program, or any covered work, by linking or
-combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK,
-NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent
-JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK
-(or a modified version of those libraries),
-containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA,
-PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
-JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
-licensors of this Program grant you additional
-permission to convey the resulting work. Corresponding Source for a
-non-source form of such a combination shall include the source code for
-the parts of OpenSSL and IJG JPEG Library used as well as that of the covered
-work.
-
-You can contact Cyan Worlds, Inc. by email legal@cyan.com
- or by snail mail at:
- Cyan Worlds, Inc.
- 14617 N Newport Hwy
- Mead, WA 99021
-
-*==LICENSE==*/
-/*****************************************************************************
-*
-* $/Plasma20/Sources/Plasma/NucleusLib/pnCsrCli/pnCsrCli.h
-*
-***/
-
-#ifndef PLASMA20_SOURCES_PLASMA_NUCLEUSLIB_PNCSRCLI_PNCSRCLI_H
-#define PLASMA20_SOURCES_PLASMA_NUCLEUSLIB_PNCSRCLI_PNCSRCLI_H
-
-
-#include "pnCsrNet/pnCsrNet.h"
-
-
-/*****************************************************************************
-*
-* pnCsrCli
-* - Connects to pfCsrSrv in remote CSR client.
-* - Sends commands to pfCsrSrv for remote execution.
-*
-***/
-
-typedef void (*FCsrCliOnError) (ENetError error);
-
-void CsrCliInitialize (FCsrCliOnError onError);
-void CsrCliShutdown ();
-
-typedef void (*FCsrCliOnConnect) (ENetError result);
-
-void CsrCliStartConnecting (
- const wchar_t addr[],
- FCsrCliOnConnect onConnect
-);
-void CsrCliDisconnect ();
-
-void CsrCliToggleAvatarPhysical ();
-void CsrCliWarpPlayerHere (unsigned playerId);
-void CsrCliWarpToPlayer (unsigned playerId);
-void CsrCliLinkPlayerHere (unsigned playerId);
-void CsrCliLinkToPlayer (unsigned playerId);
-
-
-#endif // PLASMA20_SOURCES_PLASMA_NUCLEUSLIB_PNCSRCLI_PNCSRCLI_H
diff --git a/Sources/Plasma/NucleusLib/pnCsrNet/CMakeLists.txt b/Sources/Plasma/NucleusLib/pnCsrNet/CMakeLists.txt
deleted file mode 100644
index b942717b..00000000
--- a/Sources/Plasma/NucleusLib/pnCsrNet/CMakeLists.txt
+++ /dev/null
@@ -1,16 +0,0 @@
-include_directories(../../CoreLib)
-include_directories(../../NucleusLib)
-
-set(pnCsrNet_SOURCES
- pnCsrNet.cpp
-)
-
-set(pnCsrNet_HEADERS
- Pch.h
- pnCsrNet.h
-)
-
-add_library(pnCsrNet STATIC ${pnCsrNet_SOURCES} ${pnCsrNet_HEADERS})
-
-source_group("Source Files" FILES ${pnCsrNet_SOURCES})
-source_group("Header Files" FILES ${pnCsrNet_HEADERS})
\ No newline at end of file
diff --git a/Sources/Plasma/NucleusLib/pnCsrNet/Pch.h b/Sources/Plasma/NucleusLib/pnCsrNet/Pch.h
deleted file mode 100644
index 1298d8d1..00000000
--- a/Sources/Plasma/NucleusLib/pnCsrNet/Pch.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/*==LICENSE==*
-
-CyanWorlds.com Engine - MMOG client, server and tools
-Copyright (C) 2011 Cyan Worlds, Inc.
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see .
-
-Additional permissions under GNU GPL version 3 section 7
-
-If you modify this Program, or any covered work, by linking or
-combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK,
-NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent
-JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK
-(or a modified version of those libraries),
-containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA,
-PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
-JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
-licensors of this Program grant you additional
-permission to convey the resulting work. Corresponding Source for a
-non-source form of such a combination shall include the source code for
-the parts of OpenSSL and IJG JPEG Library used as well as that of the covered
-work.
-
-You can contact Cyan Worlds, Inc. by email legal@cyan.com
- or by snail mail at:
- Cyan Worlds, Inc.
- 14617 N Newport Hwy
- Mead, WA 99021
-
-*==LICENSE==*/
-/*****************************************************************************
-*
-* $/Plasma20/Sources/Plasma/NucleusLib/pnCsrNet/Pch.h
-*
-***/
-
-#ifdef PLASMA20_SOURCES_PLASMA_NUCLEUSLIB_PNCSRNET_PCH_H
-#error "Header $/Plasma20/Sources/Plasma/NucleusLib/pnCsrNet/Pch.h included more than once"
-#endif
-#define PLASMA20_SOURCES_PLASMA_NUCLEUSLIB_PNCSRNET_PCH_H
-
-
-#include "pnCsrNet.h"
diff --git a/Sources/Plasma/NucleusLib/pnCsrNet/pnCsrNet.cpp b/Sources/Plasma/NucleusLib/pnCsrNet/pnCsrNet.cpp
deleted file mode 100644
index d68887a6..00000000
--- a/Sources/Plasma/NucleusLib/pnCsrNet/pnCsrNet.cpp
+++ /dev/null
@@ -1,49 +0,0 @@
-/*==LICENSE==*
-
-CyanWorlds.com Engine - MMOG client, server and tools
-Copyright (C) 2011 Cyan Worlds, Inc.
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see .
-
-Additional permissions under GNU GPL version 3 section 7
-
-If you modify this Program, or any covered work, by linking or
-combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK,
-NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent
-JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK
-(or a modified version of those libraries),
-containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA,
-PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
-JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
-licensors of this Program grant you additional
-permission to convey the resulting work. Corresponding Source for a
-non-source form of such a combination shall include the source code for
-the parts of OpenSSL and IJG JPEG Library used as well as that of the covered
-work.
-
-You can contact Cyan Worlds, Inc. by email legal@cyan.com
- or by snail mail at:
- Cyan Worlds, Inc.
- 14617 N Newport Hwy
- Mead, WA 99021
-
-*==LICENSE==*/
-/*****************************************************************************
-*
-* $/Plasma20/Sources/Plasma/NucleusLib/pnCsrNet/pnCsrNet.cpp
-*
-***/
-
-#include "Pch.h"
-#pragma hdrstop
diff --git a/Sources/Plasma/NucleusLib/pnCsrNet/pnCsrNet.h b/Sources/Plasma/NucleusLib/pnCsrNet/pnCsrNet.h
deleted file mode 100644
index f5de1923..00000000
--- a/Sources/Plasma/NucleusLib/pnCsrNet/pnCsrNet.h
+++ /dev/null
@@ -1,88 +0,0 @@
-/*==LICENSE==*
-
-CyanWorlds.com Engine - MMOG client, server and tools
-Copyright (C) 2011 Cyan Worlds, Inc.
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see .
-
-Additional permissions under GNU GPL version 3 section 7
-
-If you modify this Program, or any covered work, by linking or
-combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK,
-NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent
-JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK
-(or a modified version of those libraries),
-containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA,
-PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
-JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
-licensors of this Program grant you additional
-permission to convey the resulting work. Corresponding Source for a
-non-source form of such a combination shall include the source code for
-the parts of OpenSSL and IJG JPEG Library used as well as that of the covered
-work.
-
-You can contact Cyan Worlds, Inc. by email legal@cyan.com
- or by snail mail at:
- Cyan Worlds, Inc.
- 14617 N Newport Hwy
- Mead, WA 99021
-
-*==LICENSE==*/
-/*****************************************************************************
-*
-* $/Plasma20/Sources/Plasma/NucleusLib/pnCsrNet/pnCsrNet.h
-*
-***/
-
-#ifndef PLASMA20_SOURCES_PLASMA_NUCLEUSLIB_PNCSRNET_PNCSRNET_H
-#define PLASMA20_SOURCES_PLASMA_NUCLEUSLIB_PNCSRNET_PNCSRNET_H
-
-
-#include "pnSimpleNet/pnSimpleNet.h"
-
-
-/*****************************************************************************
-*
-* CSR Client Automation - Types and Constants
-*
-***/
-
-// Newer CSR game clients must remain compatible with older CSR tools,
-// therefore these values may not change. Only append to this enum.
-enum {
- kCsrNet_ExecConsoleCmd,
-};
-
-//============================================================================
-// BEGIN PACKED DATA STRUCTURES
-//============================================================================
-#pragma pack(push,1)
-
-#define CSRNET_MSG(a) \
- CsrNet_##a () : SimpleNet_MsgHeader(kSimpleNetChannelCsr, kCsrNet_##a) { }
-
-struct CsrNet_ExecConsoleCmd : SimpleNet_MsgHeader {
- CSRNET_MSG (ExecConsoleCmd);
-
- char cmd[1]; // null-terminated string
-};
-
-#undef CSRNET_MSG
-//============================================================================
-// END PACKED DATA STRUCTURES
-//============================================================================
-#pragma pack(pop)
-
-
-#endif // PLASMA20_SOURCES_PLASMA_NUCLEUSLIB_PNCSRNET_PNCSRNET_H
diff --git a/Sources/Plasma/NucleusLib/pnNetBase/pnNbConst.h b/Sources/Plasma/NucleusLib/pnNetBase/pnNbConst.h
index 5700e2b2..ca26c243 100644
--- a/Sources/Plasma/NucleusLib/pnNetBase/pnNbConst.h
+++ b/Sources/Plasma/NucleusLib/pnNetBase/pnNbConst.h
@@ -121,20 +121,6 @@ const AccountRoleInfo kAccountRoles[] = {
{ kAccountRolesAllUserFlags, "End" }
};
-
-/*****************************************************************************
-*
-* Csr
-*
-***/
-
-enum ECsrFlags {
- kCsrFlagAdmin = 1 << 0,
- kCsrFlagDisabled = 1 << 1,
- kCsrFlagServer = 1 << 2,
-};
-
-
/*****************************************************************************
*
* Game Score Types
diff --git a/Sources/Plasma/NucleusLib/pnNetBase/pnNbKeys.cpp b/Sources/Plasma/NucleusLib/pnNetBase/pnNbKeys.cpp
index 689013c2..4c421a73 100644
--- a/Sources/Plasma/NucleusLib/pnNetBase/pnNbKeys.cpp
+++ b/Sources/Plasma/NucleusLib/pnNetBase/pnNbKeys.cpp
@@ -46,10 +46,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
uint8_t kAuthDhNData[kNetDiffieHellmanKeyBits / 8] = {0};
uint8_t kAuthDhXData[kNetDiffieHellmanKeyBits / 8] = {0};
-// CSR Server
-uint8_t kCsrDhNData[kNetDiffieHellmanKeyBits / 8] = {0};
-uint8_t kCsrDhXData[kNetDiffieHellmanKeyBits / 8] = {0};
-
// Game Server
uint8_t kGameDhNData[kNetDiffieHellmanKeyBits / 8] = {0};
uint8_t kGameDhXData[kNetDiffieHellmanKeyBits / 8] = {0};
diff --git a/Sources/Plasma/NucleusLib/pnNetBase/pnNbKeys.h b/Sources/Plasma/NucleusLib/pnNetBase/pnNbKeys.h
index f5dce58b..235795f2 100644
--- a/Sources/Plasma/NucleusLib/pnNetBase/pnNbKeys.h
+++ b/Sources/Plasma/NucleusLib/pnNetBase/pnNbKeys.h
@@ -51,11 +51,6 @@ static const unsigned kAuthDhGValue = 41;
extern uint8_t kAuthDhNData[kNetDiffieHellmanKeyBits / 8];
extern uint8_t kAuthDhXData[kNetDiffieHellmanKeyBits / 8];
-// CSR Server
-static const unsigned kCsrDhGValue = 97;
-extern uint8_t kCsrDhNData[kNetDiffieHellmanKeyBits / 8];
-extern uint8_t kCsrDhXData[kNetDiffieHellmanKeyBits / 8];
-
// Game Server
static const unsigned kGameDhGValue = 73;
extern uint8_t kGameDhNData[kNetDiffieHellmanKeyBits / 8];
diff --git a/Sources/Plasma/NucleusLib/pnNetBase/pnNbProtocol.cpp b/Sources/Plasma/NucleusLib/pnNetBase/pnNbProtocol.cpp
index 80b5955d..a6946de0 100644
--- a/Sources/Plasma/NucleusLib/pnNetBase/pnNbProtocol.cpp
+++ b/Sources/Plasma/NucleusLib/pnNetBase/pnNbProtocol.cpp
@@ -59,12 +59,12 @@ const wchar_t * NetProtocolToString (ENetProtocol protocol) {
{ kNetProtocolDebug, L"kNetProtocolDebug" },
// Client connections
- { kNetProtocolCli2Csr, L"GateKeeper Server" },
- { kNetProtocolCli2Csr, L"Csr Server" },
- { kNetProtocolCli2Auth, L"Auth Server" },
- { kNetProtocolCli2Game, L"Game Server" },
- { kNetProtocolCli2File, L"File Server" },
- { kNetProtocolCli2Unused_01, L"kNetProtocolCli2Unused_01" },
+ { kNetProtocolCli2GateKeeper, L"GateKeeper Server" },
+ { kNetProtocolCli2Unused_02, L"kNetProtocolCli2Unused_02" },
+ { kNetProtocolCli2Auth, L"Auth Server" },
+ { kNetProtocolCli2Game, L"Game Server" },
+ { kNetProtocolCli2File, L"File Server" },
+ { kNetProtocolCli2Unused_01, L"kNetProtocolCli2Unused_01" },
// Server connections
{ kNetProtocolSrvConn, L"kNetProtocolSrvConn" },
diff --git a/Sources/Plasma/NucleusLib/pnNetBase/pnNbProtocol.h b/Sources/Plasma/NucleusLib/pnNetBase/pnNbProtocol.h
index 63fa92cb..e3df91b3 100644
--- a/Sources/Plasma/NucleusLib/pnNetBase/pnNbProtocol.h
+++ b/Sources/Plasma/NucleusLib/pnNetBase/pnNbProtocol.h
@@ -64,7 +64,7 @@ enum ENetProtocol {
// Client connections
kNetProtocolCli2GateKeeper = 2,
- kNetProtocolCli2Csr = 3,
+ kNetProtocolCli2Unused_02 = 3,
kNetProtocolCli2Auth = 4,
kNetProtocolCli2Game = 5,
kNetProtocolCli2File = 6,
diff --git a/Sources/Plasma/NucleusLib/pnNetBase/pnNbSrvs.cpp b/Sources/Plasma/NucleusLib/pnNetBase/pnNbSrvs.cpp
index 47dfa188..0daab489 100644
--- a/Sources/Plasma/NucleusLib/pnNetBase/pnNbSrvs.cpp
+++ b/Sources/Plasma/NucleusLib/pnNetBase/pnNbSrvs.cpp
@@ -65,12 +65,6 @@ static const char* s_fileAddrs[] = {
};
-static char s_csrAddrConsole[64] = {0};
-static const char* s_csrAddrs[] = {
- s_csrAddrConsole
-};
-
-
static char s_gateKeeperAddrConsole[64] = {0};
static const char* s_gateKeeperAddrs[] = {
s_gateKeeperAddrConsole
@@ -113,22 +107,6 @@ void SetFileSrvHostname (const char addr[]) {
strncpy(s_fileAddrConsole, addr, arrsize(s_fileAddrConsole));
}
-//============================================================================
-// Csr
-//============================================================================
-unsigned GetCsrSrvHostnames (const char*** addrs) {
-
- *addrs = s_csrAddrs;
- return arrsize(s_csrAddrs);
-}
-
-//============================================================================
-void SetCsrSrvHostname (const char addr[]) {
-
- strncpy(s_csrAddrConsole, addr, arrsize(s_csrAddrConsole));
-}
-
-
//============================================================================
// GateKeeper
//============================================================================
diff --git a/Sources/Plasma/NucleusLib/pnNetBase/pnNbSrvs.h b/Sources/Plasma/NucleusLib/pnNetBase/pnNbSrvs.h
index a7746e12..88850b0f 100644
--- a/Sources/Plasma/NucleusLib/pnNetBase/pnNbSrvs.h
+++ b/Sources/Plasma/NucleusLib/pnNetBase/pnNbSrvs.h
@@ -68,7 +68,7 @@ enum ESrvType {
kSrvTypeLog = 9,
kSrvTypeDll = 10,
kSrvTypeScore = 11,
- kSrvTypeCsr = 12,
+ kSrvTypeCsr = 12, // DEAD
kSrvTypeGateKeeper = 13,
kNumSrvTypes,
@@ -90,9 +90,6 @@ void SetAuthSrvHostname (const char addr[]);
unsigned GetFileSrvHostnames (const char*** addrs); // returns addrCount
void SetFileSrvHostname (const char addr[]);
-unsigned GetCsrSrvHostnames (const char*** addrs); // returns addrCount
-void SetCsrSrvHostname (const char addr[]);
-
unsigned GetGateKeeperSrvHostnames (const char*** addrs); // returns addrCount
void SetGateKeeperSrvHostname (const char addr[]);
diff --git a/Sources/Plasma/NucleusLib/pnNetProtocol/CMakeLists.txt b/Sources/Plasma/NucleusLib/pnNetProtocol/CMakeLists.txt
index 4c936d2a..a6a65a51 100644
--- a/Sources/Plasma/NucleusLib/pnNetProtocol/CMakeLists.txt
+++ b/Sources/Plasma/NucleusLib/pnNetProtocol/CMakeLists.txt
@@ -22,11 +22,6 @@ set(pnNetProtocol_PROTO_CLI2AUTH
Private/Protocols/Cli2Auth/pnNpCli2Auth.cpp
)
-set(pnNetProtocol_PROTO_CLI2CSR
- Private/Protocols/Cli2Csr/pnNpCli2Csr.h
- Private/Protocols/Cli2Csr/pnNpCli2Csr.cpp
-)
-
set(pnNetProtocol_PROTO_CLI2FILE
Private/Protocols/Cli2File/pnNpCli2File.h
Private/Protocols/Cli2File/pnNpCli2File.cpp
@@ -73,18 +68,16 @@ set(pnNetProtocol_PROTO_SRV2VAULT
)
add_library(pnNetProtocol STATIC ${pnNetProtocol_HEADERS} ${pnNetProtocol_PRIVATE}
- ${pnNetProtocol_PROTO_CLI2AUTH} ${pnNetProtocol_PROTO_CLI2CSR}
- ${pnNetProtocol_PROTO_CLI2FILE} ${pnNetProtocol_PROTO_CLI2GAME}
- ${pnNetProtocol_PROTO_CLI2GK} ${pnNetProtocol_PROTO_SRV2DB}
- ${pnNetProtocol_PROTO_SRV2LOG} ${pnNetProtocol_PROTO_SRV2MCP}
- ${pnNetProtocol_PROTO_SRV2SCORE} ${pnNetProtocol_PROTO_SRV2STATE}
- ${pnNetProtocol_PROTO_SRV2VAULT}
+ ${pnNetProtocol_PROTO_CLI2AUTH} ${pnNetProtocol_PROTO_CLI2FILE}
+ ${pnNetProtocol_PROTO_CLI2GAME} ${pnNetProtocol_PROTO_CLI2GK}
+ ${pnNetProtocol_PROTO_SRV2DB} ${pnNetProtocol_PROTO_SRV2LOG}
+ ${pnNetProtocol_PROTO_SRV2MCP} ${pnNetProtocol_PROTO_SRV2SCORE}
+ ${pnNetProtocol_PROTO_SRV2STATE} ${pnNetProtocol_PROTO_SRV2VAULT}
)
source_group("Header Files" FILES ${pnNetProtocol_HEADERS})
source_group("Private" FILES ${pnNetProtocol_PRIVATE})
source_group("Private\\Cli2Auth" FILES ${pnNetProtocol_PROTO_CLI2AUTH})
-source_group("Private\\Cli2Csr" FILES ${pnNetProtocol_PROTO_CLI2CSR})
source_group("Private\\Cli2File" FILES ${pnNetProtocol_PROTO_CLI2FILE})
source_group("Private\\Cli2Game" FILES ${pnNetProtocol_PROTO_CLI2GAME})
source_group("Private\\Cli2GateKeeper" FILES ${pnNetProtocol_PROTO_CLI2GK})
diff --git a/Sources/Plasma/NucleusLib/pnNetProtocol/Private/Protocols/Cli2Csr/pnNpCli2Csr.cpp b/Sources/Plasma/NucleusLib/pnNetProtocol/Private/Protocols/Cli2Csr/pnNpCli2Csr.cpp
deleted file mode 100644
index cc73a041..00000000
--- a/Sources/Plasma/NucleusLib/pnNetProtocol/Private/Protocols/Cli2Csr/pnNpCli2Csr.cpp
+++ /dev/null
@@ -1,122 +0,0 @@
-/*==LICENSE==*
-
-CyanWorlds.com Engine - MMOG client, server and tools
-Copyright (C) 2011 Cyan Worlds, Inc.
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see .
-
-Additional permissions under GNU GPL version 3 section 7
-
-If you modify this Program, or any covered work, by linking or
-combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK,
-NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent
-JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK
-(or a modified version of those libraries),
-containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA,
-PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
-JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
-licensors of this Program grant you additional
-permission to convey the resulting work. Corresponding Source for a
-non-source form of such a combination shall include the source code for
-the parts of OpenSSL and IJG JPEG Library used as well as that of the covered
-work.
-
-You can contact Cyan Worlds, Inc. by email legal@cyan.com
- or by snail mail at:
- Cyan Worlds, Inc.
- 14617 N Newport Hwy
- Mead, WA 99021
-
-*==LICENSE==*/
-/*****************************************************************************
-*
-* $/Plasma20/Sources/Plasma/NucleusLib/pnNetProtocol/Private/Protocols/Cli2Csr/pnNpCli2Csr.cpp
-*
-***/
-
-#define USES_PROTOCOL_CLI2CSR
-#include "../../../Pch.h"
-#pragma hdrstop
-
-
-namespace Cli2Csr {
-/*****************************************************************************
-*
-* Cli2Csr message field definitions
-*
-***/
-
-static const NetMsgField kPingRequestFields[] = {
- kNetMsgFieldTransId, // transId
- kNetMsgFieldTimeMs, // pingTimeMs
- NET_MSG_FIELD_VAR_COUNT(1, 64 * 1024), // payloadBytes
- NET_MSG_FIELD_VAR_PTR(), // payload
-};
-
-static const NetMsgField kRegisterRequestFields[] = {
- kNetMsgFieldTransId, // transId
-};
-
-static const NetMsgField kLoginRequestFields[] = {
- kNetMsgFieldTransId, // transId
- NET_MSG_FIELD_DWORD(), // clientChallenge
- kNetMsgFieldAccountName, // csrName
- kNetMsgFieldShaDigest, // challenge
-};
-
-
-/*****************************************************************************
-*
-* Csr2Cli message field definitions
-*
-***/
-
-static const NetMsgField kPingReplyFields[] = {
- kNetMsgFieldTransId, // transId
- kNetMsgFieldTimeMs, // pingTimeMs
- NET_MSG_FIELD_VAR_COUNT(1, 64 * 1024), // payloadBytes
- NET_MSG_FIELD_VAR_PTR(), // payload
-};
-
-static const NetMsgField kRegisterReplyFields[] = {
- kNetMsgFieldTransId, // transId
- NET_MSG_FIELD_DWORD(), // serverChallenge
- NET_MSG_FIELD_DWORD(), // latestBuildId
-};
-
-static const NetMsgField kLoginReplyFields[] = {
- kNetMsgFieldTransId, // transId
- kNetMsgFieldENetError, // result
- kNetMsgFieldUuid, // csrId
- NET_MSG_FIELD_DWORD(), // csrFlags
-};
-
-
-} using namespace Cli2Csr;
-
-
-/*****************************************************************************
-*
-* Exports
-*
-***/
-
-const NetMsg kNetMsg_Cli2Csr_PingRequest = NET_MSG(kCli2Csr_PingRequest, kPingRequestFields);
-const NetMsg kNetMsg_Cli2Csr_RegisterRequest = NET_MSG(kCli2Csr_RegisterRequest, kRegisterRequestFields);
-const NetMsg kNetMsg_Cli2Csr_LoginRequest = NET_MSG(kCli2Csr_LoginRequest, kLoginRequestFields);
-
-const NetMsg kNetMsg_Csr2Cli_PingReply = NET_MSG(kCsr2Cli_PingReply, kPingReplyFields);
-const NetMsg kNetMsg_Csr2Cli_RegisterReply = NET_MSG(kCsr2Cli_RegisterReply, kRegisterReplyFields);
-const NetMsg kNetMsg_Csr2Cli_LoginReply = NET_MSG(kCsr2Cli_LoginReply, kLoginReplyFields);
-
diff --git a/Sources/Plasma/NucleusLib/pnNetProtocol/Private/Protocols/Cli2Csr/pnNpCli2Csr.h b/Sources/Plasma/NucleusLib/pnNetProtocol/Private/Protocols/Cli2Csr/pnNpCli2Csr.h
deleted file mode 100644
index df373048..00000000
--- a/Sources/Plasma/NucleusLib/pnNetProtocol/Private/Protocols/Cli2Csr/pnNpCli2Csr.h
+++ /dev/null
@@ -1,178 +0,0 @@
-/*==LICENSE==*
-
-CyanWorlds.com Engine - MMOG client, server and tools
-Copyright (C) 2011 Cyan Worlds, Inc.
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see .
-
-Additional permissions under GNU GPL version 3 section 7
-
-If you modify this Program, or any covered work, by linking or
-combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK,
-NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent
-JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK
-(or a modified version of those libraries),
-containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA,
-PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
-JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
-licensors of this Program grant you additional
-permission to convey the resulting work. Corresponding Source for a
-non-source form of such a combination shall include the source code for
-the parts of OpenSSL and IJG JPEG Library used as well as that of the covered
-work.
-
-You can contact Cyan Worlds, Inc. by email legal@cyan.com
- or by snail mail at:
- Cyan Worlds, Inc.
- 14617 N Newport Hwy
- Mead, WA 99021
-
-*==LICENSE==*/
-/*****************************************************************************
-*
-* $/Plasma20/Sources/Plasma/NucleusLib/pnNetProtocol/Private/Protocols/Cli2Csr/pnNpCli2Csr.h
-*
-***/
-
-#ifdef PLASMA20_SOURCES_PLASMA_NUCLEUSLIB_PNNETPROTOCOL_PRIVATE_PROTOCOLS_CLI2CSR_PNNPCLI2CSR_H
-#error "Header $/Plasma20/Sources/Plasma/NucleusLib/pnNetProtocol/Private/Protocols/Cli2Csr/pnNpCli2Csr.h included more than once"
-#endif
-#define PLASMA20_SOURCES_PLASMA_NUCLEUSLIB_PNNETPROTOCOL_PRIVATE_PROTOCOLS_CLI2CSR_PNNPCLI2CSR_H
-
-
-/*****************************************************************************
-*
-* kNetProtocolCli2Csr message ids
-*
-***/
-
-// Because SrvCsr must remain backward compatible with all client builds,
-// the following enum values may never change under any circumstances.
-
-//============================================================================
-// Cli2Csr
-
-enum {
- // Misc
- kCli2Csr_PingRequest = 0,
- // Encrypt
- kCli2Csr_RegisterRequest = 1,
- // Login
- kCli2Csr_LoginRequest = 2,
- // Patch
- kCli2Csr_PatchRequest = 3,
-
- kNumCli2CsrMessages
-};
-COMPILER_ASSERT_HEADER(Cli2Scr, kNumCli2CsrMessages <= (uint16_t)-1);
-
-
-//============================================================================
-// Csr2Cli
-
-enum {
- // Misc
- kCsr2Cli_PingReply = 0,
- // Encrypt
- kCsr2Cli_RegisterReply = 1,
- // Login
- kCsr2Cli_LoginReply = 2,
- // Patch
- kCli2Csr_PatchReply = 3,
-
- kNumCsr2CliMessages
-};
-COMPILER_ASSERT_HEADER(Cli2Scr, kNumCsr2CliMessages <= (uint16_t)-1);
-
-
-/*****************************************************************************
-*
-* Networked structures
-*
-***/
-#pragma pack(push,1)
-
-//============================================================================
-// Connect packet
-
-struct Cli2Csr_ConnData {
- uint32_t dataBytes;
-};
-struct Cli2Csr_Connect {
- AsyncSocketConnectPacket hdr;
- Cli2Csr_ConnData data;
-};
-
-//============================================================================
-// Message header
-
-struct Cli2Csr_MsgHeader {
- uint32_t messageId;
- uint32_t transId;
-};
-
-//============================================================================
-// Cli --> Csr message structures
-
-// PingRequest
-extern const NetMsg kNetMsg_Cli2Csr_PingRequest;
-struct Cli2Csr_PingRequest : Cli2Csr_MsgHeader {
- uint32_t pingTimeMs;
- uint32_t payloadBytes;
- uint8_t payload[1]; // [payloadBytes]
-};
-
-// RegisterRequest
-extern const NetMsg kNetMsg_Cli2Csr_RegisterRequest;
-struct Cli2Csr_RegisterRequest : Cli2Csr_MsgHeader {
-};
-
-// LoginRequest
-extern const NetMsg kNetMsg_Cli2Csr_LoginRequest;
-struct Cli2Csr_LoginRequest : Cli2Csr_MsgHeader {
- uint32_t clientChallenge;
- wchar_t csrName[kMaxAccountNameLength];
- ShaDigest challengeHash;
-};
-
-
-//============================================================================
-// Csr --> Cli message structures
-
-// PingReply
-extern const NetMsg kNetMsg_Csr2Cli_PingReply;
-struct Csr2Cli_PingReply : Cli2Csr_MsgHeader {
- uint32_t pingTimeMs;
- uint32_t payloadBytes;
- uint8_t payload[1]; // [payloadBytes]
-};
-
-// RegisterReply
-extern const NetMsg kNetMsg_Csr2Cli_RegisterReply;
-struct Csr2Cli_RegisterReply : Cli2Csr_MsgHeader {
- uint32_t serverChallenge;
- uint32_t csrBuildId; // buildId of the latest csr client
-};
-
-// LoginReply
-extern const NetMsg kNetMsg_Csr2Cli_LoginReply;
-struct Csr2Cli_LoginReply : Cli2Csr_MsgHeader {
- ENetError result;
- Uuid csrId;
- uint32_t csrFlags;
-};
-
-
-#pragma pack(pop)
-
diff --git a/Sources/Plasma/NucleusLib/pnNetProtocol/Private/pnNpAllIncludes.h b/Sources/Plasma/NucleusLib/pnNetProtocol/Private/pnNpAllIncludes.h
index 6526fe3c..10b64ca9 100644
--- a/Sources/Plasma/NucleusLib/pnNetProtocol/Private/pnNpAllIncludes.h
+++ b/Sources/Plasma/NucleusLib/pnNetProtocol/Private/pnNpAllIncludes.h
@@ -76,10 +76,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
# include "Protocols/Cli2Game/pnNpCli2Game.h"
# endif
-# ifdef USES_PROTOCOL_CLI2CSR
-# include "Protocols/Cli2Csr/pnNpCli2Csr.h"
-# endif
-
# ifdef USES_PROTOCOL_CLI2GATEKEEPER
# include "Protocols/Cli2GateKeeper/pnNpCli2GateKeeper.h"
# endif
diff --git a/Sources/Plasma/NucleusLib/pnSimpleNet/CMakeLists.txt b/Sources/Plasma/NucleusLib/pnSimpleNet/CMakeLists.txt
deleted file mode 100644
index 77d60d72..00000000
--- a/Sources/Plasma/NucleusLib/pnSimpleNet/CMakeLists.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-include_directories("../../CoreLib")
-include_directories("../../NucleusLib")
-
-set(pnSimpleNet_HEADERS
- pnSimpleNet.h
-)
-
-set(pnSimpleNet_SOURCES
- pnSimpleNet.cpp
-)
-
-add_library(pnSimpleNet STATIC ${pnSimpleNet_HEADERS} ${pnSimpleNet_SOURCES})
-
-source_group("Header Files" FILES ${pnSimpleNet_HEADERS})
-source_group("Source Files" FILES ${pnSimpleNet_SOURCES})
diff --git a/Sources/Plasma/NucleusLib/pnSimpleNet/pnSimpleNet.cpp b/Sources/Plasma/NucleusLib/pnSimpleNet/pnSimpleNet.cpp
deleted file mode 100644
index 865dae2e..00000000
--- a/Sources/Plasma/NucleusLib/pnSimpleNet/pnSimpleNet.cpp
+++ /dev/null
@@ -1,658 +0,0 @@
-/*==LICENSE==*
-
-CyanWorlds.com Engine - MMOG client, server and tools
-Copyright (C) 2011 Cyan Worlds, Inc.
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see .
-
-Additional permissions under GNU GPL version 3 section 7
-
-If you modify this Program, or any covered work, by linking or
-combining it with any of RAD Game Tools Bink SDK, Autodesk 3ds Max SDK,
-NVIDIA PhysX SDK, Microsoft DirectX SDK, OpenSSL library, Independent
-JPEG Group JPEG library, Microsoft Windows Media SDK, or Apple QuickTime SDK
-(or a modified version of those libraries),
-containing parts covered by the terms of the Bink SDK EULA, 3ds Max EULA,
-PhysX SDK EULA, DirectX SDK EULA, OpenSSL and SSLeay licenses, IJG
-JPEG Library README, Windows Media SDK EULA, or QuickTime SDK EULA, the
-licensors of this Program grant you additional
-permission to convey the resulting work. Corresponding Source for a
-non-source form of such a combination shall include the source code for
-the parts of OpenSSL and IJG JPEG Library used as well as that of the covered
-work.
-
-You can contact Cyan Worlds, Inc. by email legal@cyan.com
- or by snail mail at:
- Cyan Worlds, Inc.
- 14617 N Newport Hwy
- Mead, WA 99021
-
-*==LICENSE==*/
-/*****************************************************************************
-*
-* $/Plasma20/Sources/Plasma/NucleusLib/pnSimpleNet/pnSimpleNet.cpp
-*
-***/
-
-#include "pnSimpleNet.h"
-#include "hsThread.h"
-
-#include
-#include