mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-12 01:32:25 +00:00
[Cleanup] Remove GetServerByAddress() from server_manager.h (#3119)
# Notes - This is unused.
This commit is contained in:
parent
6b8e74a29f
commit
6e5da0e558
@ -73,25 +73,6 @@ ServerManager::ServerManager()
|
|||||||
|
|
||||||
ServerManager::~ServerManager() = default;
|
ServerManager::~ServerManager() = default;
|
||||||
|
|
||||||
/**
|
|
||||||
* @param ip_address
|
|
||||||
* @param port
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
WorldServer *ServerManager::GetServerByAddress(const std::string &ip_address, int port)
|
|
||||||
{
|
|
||||||
auto iter = m_world_servers.begin();
|
|
||||||
while (iter != m_world_servers.end()) {
|
|
||||||
if ((*iter)->GetConnection()->Handle()->RemoteIP() == ip_address &&
|
|
||||||
(*iter)->GetConnection()->Handle()->RemotePort()) {
|
|
||||||
return (*iter).get();
|
|
||||||
}
|
|
||||||
++iter;
|
|
||||||
}
|
|
||||||
|
|
||||||
return nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param client
|
* @param client
|
||||||
* @param sequence
|
* @param sequence
|
||||||
|
|||||||
@ -72,17 +72,6 @@ public:
|
|||||||
const std::list<std::unique_ptr<WorldServer>> &getWorldServers() const;
|
const std::list<std::unique_ptr<WorldServer>> &getWorldServers() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
/**
|
|
||||||
* Retrieves a server(if exists) by ip address
|
|
||||||
* Useful utility for the reconnect process
|
|
||||||
*
|
|
||||||
* @param ip_address
|
|
||||||
* @param port
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
WorldServer *GetServerByAddress(const std::string &ip_address, int port);
|
|
||||||
|
|
||||||
std::unique_ptr<EQ::Net::ServertalkServer> m_server_connection;
|
std::unique_ptr<EQ::Net::ServertalkServer> m_server_connection;
|
||||||
std::list<std::unique_ptr<WorldServer>> m_world_servers;
|
std::list<std::unique_ptr<WorldServer>> m_world_servers;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user