mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-26 07:17:16 +00:00
Change space indentation to tabs
This commit is contained in:
+32
-32
@@ -1,19 +1,19 @@
|
||||
/* EQEMu: Everquest Server Emulator
|
||||
Copyright (C) 2001-2010 EQEMu Development Team (http://eqemulator.net)
|
||||
/* EQEMu: Everquest Server Emulator
|
||||
Copyright (C) 2001-2010 EQEMu Development Team (http://eqemulator.net)
|
||||
|
||||
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; version 2 of the License.
|
||||
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; version 2 of the License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY except by those people which sell it, which
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY except by those people which sell it, which
|
||||
are required to give you total support for your newly bought product;
|
||||
without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||
A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||
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, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
#ifndef EQEMU_SERVERMANAGER_H
|
||||
#define EQEMU_SERVERMANAGER_H
|
||||
@@ -31,56 +31,56 @@
|
||||
using namespace std;
|
||||
|
||||
/**
|
||||
* Server manager class, deals with management of the world servers.
|
||||
*/
|
||||
* Server manager class, deals with management of the world servers.
|
||||
*/
|
||||
class ServerManager
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Constructor, sets up the TCP server and starts listening.
|
||||
*/
|
||||
* Constructor, sets up the TCP server and starts listening.
|
||||
*/
|
||||
ServerManager();
|
||||
|
||||
/**
|
||||
* Destructor, shuts down the TCP server.
|
||||
*/
|
||||
* Destructor, shuts down the TCP server.
|
||||
*/
|
||||
~ServerManager();
|
||||
|
||||
/**
|
||||
* Does basic processing for all the servers.
|
||||
*/
|
||||
* Does basic processing for all the servers.
|
||||
*/
|
||||
void Process();
|
||||
|
||||
/**
|
||||
* Sends a request to world to see if the client is banned or suspended.
|
||||
*/
|
||||
* Sends a request to world to see if the client is banned or suspended.
|
||||
*/
|
||||
void SendUserToWorldRequest(unsigned int server_id, unsigned int client_account_id);
|
||||
|
||||
/**
|
||||
* Creates a server list packet for the client.
|
||||
*/
|
||||
* Creates a server list packet for the client.
|
||||
*/
|
||||
EQApplicationPacket *CreateServerListPacket(Client *c);
|
||||
|
||||
/**
|
||||
* Checks to see if there is a server exists with this name, ignoring option.
|
||||
*/
|
||||
* Checks to see if there is a server exists with this name, ignoring option.
|
||||
*/
|
||||
bool ServerExists(string l_name, string s_name, WorldServer *ignore = nullptr);
|
||||
|
||||
/**
|
||||
* Destroys a server with this name, ignoring option.
|
||||
*/
|
||||
* Destroys a server with this name, ignoring option.
|
||||
*/
|
||||
void DestroyServerByName(string l_name, string s_name, WorldServer *ignore = nullptr);
|
||||
|
||||
private:
|
||||
/**
|
||||
* Processes all the disconnected connections in Process(), not used outside.
|
||||
*/
|
||||
* Processes all the disconnected connections in Process(), not used outside.
|
||||
*/
|
||||
void ProcessDisconnect();
|
||||
|
||||
/**
|
||||
* Retrieves a server(if exists) by ip address
|
||||
* Useful utility for the reconnect process.
|
||||
*/
|
||||
* Retrieves a server(if exists) by ip address
|
||||
* Useful utility for the reconnect process.
|
||||
*/
|
||||
WorldServer* GetServerByAddress(unsigned int address);
|
||||
|
||||
EmuTCPServer* tcps;
|
||||
|
||||
Reference in New Issue
Block a user