#include <cstdlib>
#include <getopt.h>
#include <signal.h>
#include <iostream>
#include <physfs.h>
#include <enet/enet.h>
#include "configuration.h"
#include "resourcemanager.h"
#include "skill.h"
#include "account-server/accounthandler.hpp"
#include "account-server/serverhandler.hpp"
#include "account-server/storage.hpp"
#include "chat-server/chatchannelmanager.hpp"
#include "chat-server/chathandler.hpp"
#include "net/connectionhandler.hpp"
#include "net/messageout.hpp"
#include "utils/logger.h"
#include "utils/processorutils.hpp"
#include "utils/stringfilter.h"
Go to the source code of this file.
Defines | |
| #define | DEFAULT_LOG_FILE "tmwserv-account.log" |
| #define | DEFAULT_CONFIG_FILE "tmwserv.xml" |
| #define | DEFAULT_ITEMSDB_FILE "items.xml" |
Functions | |
| void | closeGracefully (int dummy) |
| Callback used when SIGQUIT signal is received. | |
| void | initialize () |
| Initializes the server. | |
| void | deinitialize () |
| Deinitializes the server. | |
| void | printHelp () |
| Show command line arguments. | |
| void | parseOptions (int argc, char *argv[]) |
| Parse the command line arguments. | |
| int | main (int argc, char *argv[]) |
| Main function, initializes and runs server. | |
Variables | |
| bool | running = true |
| Determines if server keeps running. | |
| Skill | skillTree ("base") |
| Skill tree. | |
| Configuration | config |
| XML config reader. | |
| utils::StringFilter * | stringFilter |
| Slang's Filter. | |
| AccountHandler * | accountHandler |
| Account message handler. | |
| ChatHandler * | chatHandler |
| Communications (chat) message handler. | |
| ServerHandler * | serverHandler |
| Server message handler. | |
| ChatChannelManager * | chatChannelManager |
| Chat Channels Manager. | |
|
|
Definition at line 50 of file main-account.cpp. |
|
|
Definition at line 51 of file main-account.cpp. |
|
|
Definition at line 49 of file main-account.cpp. |
|
|
Callback used when SIGQUIT signal is received.
Definition at line 74 of file main-account.cpp. |
|
|
Deinitializes the server.
Definition at line 191 of file main-account.cpp. |
|
|
Initializes the server.
Definition at line 82 of file main-account.cpp. |
|
||||||||||||
|
Main function, initializes and runs server.
Definition at line 277 of file main-account.cpp. |
|
||||||||||||
|
Parse the command line arguments.
Definition at line 231 of file main-account.cpp. |
|
|
Show command line arguments.
Definition at line 218 of file main-account.cpp. |
|
|
Account message handler.
Definition at line 62 of file main-account.cpp. |
|
|
Chat Channels Manager.
Definition at line 71 of file main-account.cpp. |
|
|
Communications (chat) message handler.
Definition at line 65 of file main-account.cpp. |
|
|
XML config reader.
Definition at line 57 of file main-account.cpp. |
|
|
Determines if server keeps running.
Definition at line 53 of file main-account.cpp. |
|
|
Server message handler.
Definition at line 68 of file main-account.cpp. |
|
|
Skill tree.
|
|
|
Slang's Filter.
Definition at line 59 of file main-account.cpp. |
1.3.9.1