26 #ifndef __IMAGESERVER__H__INCL__
27 #define __IMAGESERVER__H__INCL__
76 std::shared_ptr<boost::asio::detail::thread>
_ioThread;
77 std::shared_ptr<boost::asio::io_context>
_io;
86 Lock(boost::asio::detail::mutex& mutex);
93 #define sImageServer \
94 ( ImageServer::get() )
96 #endif // __IMAGESERVER__H__INCL__
static const char *const Categories[]
static const char *const FallbackURL
boost::asio::detail::mutex & _mutex
void ReportNewCharacter(uint32 creatorAccountID, uint32 characterID)
Handles distribution of character and related game images.
void ReportNewImage(uint32 accountID, std::shared_ptr< std::vector< char > > imageData)
std::shared_ptr< std::vector< char > > GetImage(std::string &category, uint32 id, uint32 size)
boost::asio::detail::mutex _limboLock
bool ValidateSize(std::string &category, uint32 size)
std::shared_ptr< ImageServerListener > _listener
Handles listening for new clients.
static const uint32 CategoryCount
Lock(boost::asio::detail::mutex &mutex)
std::shared_ptr< boost::asio::detail::thread > _ioThread
std::shared_ptr< boost::asio::io_context > _io
std::string GetFilePath(std::string &category, uint32 id, uint32 size)
Template used for singleton classes.
bool ValidateCategory(std::string &category)
std::unordered_map< uint32, std::shared_ptr< std::vector< char > > > _limboImages