aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server/worldserver/Master.cpp1
-rw-r--r--src/server/worldserver/RemoteAccess/RARunnable.cpp80
-rw-r--r--src/server/worldserver/RemoteAccess/RARunnable.h29
3 files changed, 0 insertions, 110 deletions
diff --git a/src/server/worldserver/Master.cpp b/src/server/worldserver/Master.cpp
index 5318652ad88..4669168042c 100644
--- a/src/server/worldserver/Master.cpp
+++ b/src/server/worldserver/Master.cpp
@@ -34,7 +34,6 @@
#include "Database/DatabaseWorkerPool.h"
#include "CliRunnable.h"
#include "Log.h"
-#include "RARunnable.h"
#include "TCSoap.h"
#include "Timer.h"
#include "Util.h"
diff --git a/src/server/worldserver/RemoteAccess/RARunnable.cpp b/src/server/worldserver/RemoteAccess/RARunnable.cpp
deleted file mode 100644
index b3461af5a87..00000000000
--- a/src/server/worldserver/RemoteAccess/RARunnable.cpp
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * Copyright (C) 2008-2014 TrinityCore <http://www.trinitycore.org/>
- *
- * 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 2 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 <http://www.gnu.org/licenses/>.
- */
-
-/** \file
- \ingroup Trinityd
- */
-
-#include "Common.h"
-#include "Config.h"
-#include "Log.h"
-#include "RARunnable.h",
-#include "World.h"
-
-#include <ace/Reactor_Impl.h>
-#include <ace/TP_Reactor.h>
-#include <ace/Dev_Poll_Reactor.h>
-#include <ace/Acceptor.h>
-#include <ace/SOCK_Acceptor.h>
-
-#include "RASocket.h"
-
-
-void RemoteAccessThread()
-{
- ACE_Reactor_Impl* imp = nullptr;
-
-#if defined (ACE_HAS_EVENT_POLL) || defined (ACE_HAS_DEV_POLL)
- imp = new ACE_Dev_Poll_Reactor();
- imp->max_notify_iterations(128);
- imp->restart(1);
-#else
- imp = new ACE_TP_Reactor();
- imp->max_notify_iterations(128);
-#endif
-
- ACE_Reactor* reactor = new ACE_Reactor(imp, 1);
-
- if (!sConfigMgr->GetBoolDefault("Ra.Enable", false))
- return;
-
- ACE_Acceptor<RASocket, ACE_SOCK_ACCEPTOR> acceptor;
-
- uint16 raPort = uint16(sConfigMgr->GetIntDefault("Ra.Port", 3443));
- std::string stringIp = sConfigMgr->GetStringDefault("Ra.IP", "0.0.0.0");
- ACE_INET_Addr listenAddress(raPort, stringIp.c_str());
-
- if (acceptor.open(listenAddress, reactor) == -1)
- {
- TC_LOG_ERROR("server.worldserver", "Trinity RA can not bind to port %d on %s", raPort, stringIp.c_str());
- return;
- }
-
- TC_LOG_INFO("server.worldserver", "Starting Trinity RA on port %d on %s", raPort, stringIp.c_str());
-
- while (!World::IsStopped())
- {
- ACE_Time_Value interval(0, 100000);
- if (reactor->run_reactor_event_loop(interval) == -1)
- break;
- }
-
- delete imp;
- delete reactor;
-
- TC_LOG_DEBUG("server.worldserver", "Trinity RA thread exiting");
-}
diff --git a/src/server/worldserver/RemoteAccess/RARunnable.h b/src/server/worldserver/RemoteAccess/RARunnable.h
deleted file mode 100644
index a65df077f97..00000000000
--- a/src/server/worldserver/RemoteAccess/RARunnable.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (C) 2008-2014 TrinityCore <http://www.trinitycore.org/>
- *
- * 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 2 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 <http://www.gnu.org/licenses/>.
- */
-
-/// \addtogroup Trinityd
-/// @{
-/// \file
-
-#ifndef _TRINITY_RARUNNABLE_H_
-#define _TRINITY_RARUNNABLE_H_
-
-void RemoteAccessThread();
-
-#endif /* _TRINITY_RARUNNABLE_H_ */
-
-/// @}