#include <ServerRegistration.h>

Public Member Functions | |
| ServerRegistrationEntry (const char *masterListServer, const char *masterListServerURI) | |
| virtual | ~ServerRegistrationEntry () |
| void | start () |
Protected Member Functions | |
| void | actualThreadFunc () |
| bool | registerGame () |
| virtual void | processMessage (NetMessage &message) |
Static Protected Member Functions | |
| static int | threadFunc (void *) |
Protected Attributes | |
| const char * | masterListServer_ |
| bool | finished_ |
| bool | success_ |
| NetServerTCP | netServer_ |
| NetBuffer | sendNetBuffer_ |
Definition at line 26 of file ServerRegistration.h.
| ServerRegistrationEntry::ServerRegistrationEntry | ( | const char * | masterListServer, | |
| const char * | masterListServerURI | |||
| ) |
Definition at line 60 of file ServerRegistration.cpp.
References NetBuffer::addDataToBuffer(), S3D::formatStringBuffer(), ScorchedServer::instance(), int(), netServer_, sendNetBuffer_, and NetServerTCP::setMessageHandler().
| ServerRegistrationEntry::~ServerRegistrationEntry | ( | ) | [virtual] |
Definition at line 82 of file ServerRegistration.cpp.
| void ServerRegistrationEntry::start | ( | ) |
Definition at line 86 of file ServerRegistration.cpp.
References threadFunc().
Referenced by ServerRegistration::start().
| int ServerRegistrationEntry::threadFunc | ( | void * | param | ) | [static, protected] |
Definition at line 91 of file ServerRegistration.cpp.
References actualThreadFunc().
Referenced by start().
| void ServerRegistrationEntry::actualThreadFunc | ( | ) | [protected] |
Definition at line 100 of file ServerRegistration.cpp.
References NetServerTCP::disconnectAllClients(), finished_, S3D::formatStringBuffer(), OptionsMasterListServer::getMasterListServerTimeout(), OptionsMasterListServer::instance(), Logger::log(), masterListServer_, netServer_, NetServerTCP::processMessages(), registerGame(), and success_.
Referenced by threadFunc().
| bool ServerRegistrationEntry::registerGame | ( | ) | [protected] |
Definition at line 155 of file ServerRegistration.cpp.
References NetServerTCP::connect(), masterListServer_, netServer_, NetServerTCP::sendMessageServer(), and sendNetBuffer_.
Referenced by actualThreadFunc().
| void ServerRegistrationEntry::processMessage | ( | NetMessage & | message | ) | [protected, virtual] |
Implements NetMessageHandlerI.
Definition at line 165 of file ServerRegistration.cpp.
References NetBuffer::addToBuffer(), NetMessage::BufferMessage, NetMessage::DisconnectMessage, finished_, NetBuffer::getBuffer(), NetMessage::getBuffer(), NetMessage::getMessageType(), LangStringUtil::strstr(), and success_.
const char* ServerRegistrationEntry::masterListServer_ [protected] |
Definition at line 36 of file ServerRegistration.h.
Referenced by actualThreadFunc(), and registerGame().
bool ServerRegistrationEntry::finished_ [protected] |
Definition at line 37 of file ServerRegistration.h.
Referenced by actualThreadFunc(), and processMessage().
bool ServerRegistrationEntry::success_ [protected] |
Definition at line 37 of file ServerRegistration.h.
Referenced by actualThreadFunc(), and processMessage().
NetServerTCP ServerRegistrationEntry::netServer_ [protected] |
Definition at line 38 of file ServerRegistration.h.
Referenced by actualThreadFunc(), registerGame(), and ServerRegistrationEntry().
NetBuffer ServerRegistrationEntry::sendNetBuffer_ [protected] |
Definition at line 39 of file ServerRegistration.h.
Referenced by registerGame(), and ServerRegistrationEntry().
1.5.3