EvEmu
0.8.4
11 September 2021
|
Handles queries from external clients for many kinds of returned xml structures according to CCP's API plus extensions for EVEmu. More...
#include "APIServer.h"
Classes | |
class | Lock |
Public Member Functions | |
APIServer () | |
void | Run () |
void | Stop () |
void | CreateServices (const PyServiceMgr &services) |
std::string & | url () |
std::tr1::shared_ptr < std::vector< char > > | GetXML (const APICommandCall *pAPICommandCall) |
![]() | |
Singleton () | |
Primary constructor. More... | |
Static Public Attributes | |
static const char *const | FallbackURL = "http://api.eveonline.com/" |
Private Member Functions | |
void | RunInternal () |
Private Attributes | |
std::unique_ptr < boost::asio::detail::thread > | _ioThread |
std::unique_ptr < boost::asio::io_context > | _io |
std::unique_ptr < APIServerListener > | _listener |
std::string | _url |
std::string | _basePath |
boost::asio::detail::mutex | _limboLock |
bool | runonce |
std::tr1::shared_ptr< std::string > | m_xmlString |
std::map< std::string, APIServiceManager * > | m_APIServiceManagers |
Additional Inherited Members | |
![]() | |
static APIServer & | get () |
![]() | |
static std::shared_ptr< APIServer > | mInstance |
Handles queries from external clients for many kinds of returned xml structures according to CCP's API plus extensions for EVEmu.
A very limited HTTP server that can efficiently deliver many different xml structured documents to clients Uses asio for efficient asynchronous network communication
Definition at line 44 of file APIServer.h.
APIServer::APIServer | ( | ) |
void APIServer::CreateServices | ( | const PyServiceMgr & | services | ) |
Definition at line 49 of file APIServer.cpp.
References m_APIServiceManagers, and runonce.
std::tr1::shared_ptr< std::vector< char > > APIServer::GetXML | ( | const APICommandCall * | pAPICommandCall | ) |
Definition at line 67 of file APIServer.cpp.
References m_APIServiceManagers, m_xmlString, and sLog.
void APIServer::Run | ( | ) |
Definition at line 105 of file APIServer.cpp.
References _ioThread, and RunInternal().
|
private |
Definition at line 116 of file APIServer.cpp.
References _io, and _listener.
Referenced by Run().
void APIServer::Stop | ( | ) |
Definition at line 110 of file APIServer.cpp.
References _io, and _ioThread.
std::string & APIServer::url | ( | ) |
Definition at line 100 of file APIServer.cpp.
References _url.
|
private |
Definition at line 67 of file APIServer.h.
|
private |
Definition at line 64 of file APIServer.h.
Referenced by RunInternal(), and Stop().
|
private |
Definition at line 63 of file APIServer.h.
|
private |
Definition at line 68 of file APIServer.h.
|
private |
Definition at line 65 of file APIServer.h.
Referenced by RunInternal().
|
private |
Definition at line 66 of file APIServer.h.
Referenced by APIServer(), and url().
|
static |
Definition at line 58 of file APIServer.h.
Referenced by APIServerConnection::RedirectLocation().
|
private |
Definition at line 73 of file APIServer.h.
Referenced by CreateServices(), and GetXML().
|
private |
Definition at line 71 of file APIServer.h.
Referenced by GetXML().
|
private |
Definition at line 69 of file APIServer.h.
Referenced by APIServer(), and CreateServices().