2011-07-02 14:38:06 +00:00
|
|
|
/*****************************************************************************
|
|
|
|
|
* PokerTH - The open source texas holdem engine *
|
|
|
|
|
* Copyright (C) 2006-2011 Felix Hammer, Florian Thauer, Lothar May *
|
|
|
|
|
* *
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify *
|
|
|
|
|
* it under the terms of the GNU Affero General Public License as *
|
|
|
|
|
* published by the Free Software Foundation, either version 3 of the *
|
|
|
|
|
* License, or (at your option) any later version. *
|
|
|
|
|
* *
|
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
|
* GNU Affero General Public License for more details. *
|
|
|
|
|
* *
|
|
|
|
|
* You should have received a copy of the GNU Affero General Public License *
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
|
|
|
|
*****************************************************************************/
|
2009-09-19 20:28:30 +00:00
|
|
|
/* Network server lobby thread. */
|
2007-11-16 15:24:25 +00:00
|
|
|
|
2009-09-19 20:28:30 +00:00
|
|
|
#ifndef _SERVERLOBBYTHREAD_H_
|
|
|
|
|
#define _SERVERLOBBYTHREAD_H_
|
2007-11-16 15:24:25 +00:00
|
|
|
|
2009-05-04 21:11:29 +00:00
|
|
|
#include <boost/asio.hpp>
|
2009-06-12 15:48:34 +00:00
|
|
|
#include <boost/enable_shared_from_this.hpp>
|
2011-02-09 22:09:29 +00:00
|
|
|
#include <boost/uuid/uuid_generators.hpp>
|
2009-05-07 22:36:51 +00:00
|
|
|
|
2007-11-16 15:24:25 +00:00
|
|
|
#include <net/sessionmanager.h>
|
|
|
|
|
#include <net/netpacket.h>
|
2009-09-24 20:10:40 +00:00
|
|
|
#include <db/serverdbcallback.h>
|
2007-11-16 15:24:25 +00:00
|
|
|
#include <gui/guiinterface.h>
|
|
|
|
|
#include <gamedata.h>
|
|
|
|
|
|
2007-11-16 22:34:38 +00:00
|
|
|
#define NET_LOBBY_THREAD_TERMINATE_TIMEOUT_MSEC 20000
|
|
|
|
|
#define NET_ADMIN_IRC_TERMINATE_TIMEOUT_MSEC 4000
|
2007-11-16 15:24:25 +00:00
|
|
|
|
|
|
|
|
|
2009-06-07 08:51:43 +00:00
|
|
|
class SenderHelper;
|
2009-09-19 20:28:30 +00:00
|
|
|
class InternalServerCallback;
|
2009-08-20 11:42:13 +00:00
|
|
|
class ServerIrcBotCallback;
|
2009-05-31 20:14:46 +00:00
|
|
|
class ServerGame;
|
2009-06-18 20:16:22 +00:00
|
|
|
class ServerBanManager;
|
2007-11-16 15:24:25 +00:00
|
|
|
class ConfigFile;
|
|
|
|
|
class AvatarManager;
|
2009-08-14 22:05:01 +00:00
|
|
|
class ChatCleanerManager;
|
2009-09-19 20:28:30 +00:00
|
|
|
class ServerDBInterface;
|
2007-11-16 15:24:25 +00:00
|
|
|
struct GameData;
|
|
|
|
|
class Game;
|
2009-10-11 09:20:17 +00:00
|
|
|
struct Gsasl;
|
2007-11-16 15:24:25 +00:00
|
|
|
|
2009-06-12 15:48:34 +00:00
|
|
|
class ServerLobbyThread : public Thread, public boost::enable_shared_from_this<ServerLobbyThread>
|
2007-11-16 15:24:25 +00:00
|
|
|
{
|
|
|
|
|
public:
|
2011-01-03 18:41:28 +00:00
|
|
|
ServerLobbyThread(GuiInterface &gui, ServerMode mode, ServerIrcBotCallback &ircBotCb, ConfigFile &serverConfig, AvatarManager &avatarManager,
|
2011-02-11 20:02:08 +00:00
|
|
|
boost::shared_ptr<boost::asio::io_service> ioService);
|
2007-11-16 15:24:25 +00:00
|
|
|
virtual ~ServerLobbyThread();
|
|
|
|
|
|
2009-11-08 09:48:01 +00:00
|
|
|
void Init(const std::string &logDir);
|
2009-06-01 19:49:16 +00:00
|
|
|
virtual void SignalTermination();
|
2007-11-16 15:24:25 +00:00
|
|
|
|
2009-05-04 21:11:29 +00:00
|
|
|
void AddConnection(boost::shared_ptr<boost::asio::ip::tcp::socket> sock);
|
2011-03-10 21:53:25 +00:00
|
|
|
void ReAddSession(boost::shared_ptr<SessionData> session, int reason, unsigned gameId);
|
|
|
|
|
void MoveSessionToGame(boost::shared_ptr<ServerGame> game, boost::shared_ptr<SessionData> session, bool autoLeave);
|
2011-03-10 20:55:46 +00:00
|
|
|
void SessionError(boost::shared_ptr<SessionData> session, int errorCode);
|
|
|
|
|
void ResubscribeLobbyMsg(boost::shared_ptr<SessionData> session);
|
2009-08-15 22:20:19 +00:00
|
|
|
void NotifyPlayerJoinedLobby(unsigned playerId);
|
|
|
|
|
void NotifyPlayerLeftLobby(unsigned playerId);
|
2007-11-16 15:24:25 +00:00
|
|
|
void NotifyPlayerJoinedGame(unsigned gameId, unsigned playerId);
|
|
|
|
|
void NotifyPlayerLeftGame(unsigned gameId, unsigned playerId);
|
|
|
|
|
void NotifyGameAdminChanged(unsigned gameId, unsigned newAdminPlayerId);
|
|
|
|
|
void NotifyStartingGame(unsigned gameId);
|
|
|
|
|
void NotifyReopeningGame(unsigned gameId);
|
|
|
|
|
|
2011-02-19 23:47:24 +00:00
|
|
|
void DispatchPacket(boost::shared_ptr<SessionData> session, boost::shared_ptr<NetPacket> packet);
|
2011-03-10 20:55:46 +00:00
|
|
|
void HandleGameRetrievePlayerInfo(boost::shared_ptr<SessionData> session, const PlayerInfoRequestMessage_t &playerInfoRequest);
|
|
|
|
|
void HandleGameRetrieveAvatar(boost::shared_ptr<SessionData> session, const AvatarRequestMessage_t &retrieveAvatar);
|
2012-04-08 14:36:14 +00:00
|
|
|
void HandleGameReportGame(boost::shared_ptr<SessionData> session, const ReportGameMessage_t &reportGame);
|
2011-03-10 20:55:46 +00:00
|
|
|
void HandleChatRequest(boost::shared_ptr<SessionData> session, const ChatRequestMessage_t &chatRequest);
|
2007-11-16 15:24:25 +00:00
|
|
|
|
|
|
|
|
bool KickPlayerByName(const std::string &playerName);
|
2012-02-13 20:28:55 +00:00
|
|
|
bool RemoveGameByPlayerName(const std::string &playerName);
|
2009-04-10 21:54:59 +00:00
|
|
|
std::string GetPlayerIPAddress(const std::string &playerName) const;
|
2010-07-14 17:20:51 +00:00
|
|
|
std::string GetPlayerNameFromId(unsigned playerId) const;
|
2008-03-06 15:27:31 +00:00
|
|
|
void RemovePlayer(unsigned playerId, unsigned errorCode);
|
2012-01-08 13:02:29 +00:00
|
|
|
void MutePlayerInGame(unsigned playerId);
|
2007-11-16 15:24:25 +00:00
|
|
|
|
2008-12-26 16:47:14 +00:00
|
|
|
void SendGlobalChat(const std::string &message);
|
|
|
|
|
void SendGlobalMsgBox(const std::string &message);
|
2009-08-17 09:45:06 +00:00
|
|
|
void SendChatBotMsg(const std::string &message);
|
2011-01-30 18:28:44 +00:00
|
|
|
void SendChatBotMsg(unsigned gameId, const std::string &message);
|
2009-08-17 11:26:03 +00:00
|
|
|
void ReconnectChatBot();
|
2008-12-26 13:50:09 +00:00
|
|
|
|
2007-11-16 15:24:25 +00:00
|
|
|
void AddComputerPlayer(boost::shared_ptr<PlayerData> player);
|
|
|
|
|
void RemoveComputerPlayer(boost::shared_ptr<PlayerData> player);
|
|
|
|
|
|
2010-03-30 13:02:43 +00:00
|
|
|
bool SendToLobbyPlayer(unsigned playerId, boost::shared_ptr<NetPacket> packet);
|
2010-03-30 12:07:48 +00:00
|
|
|
|
2007-11-16 15:24:25 +00:00
|
|
|
u_int32_t GetNextUniquePlayerId();
|
|
|
|
|
u_int32_t GetNextGameId();
|
|
|
|
|
ServerCallback &GetCallback();
|
|
|
|
|
|
|
|
|
|
AvatarManager &GetAvatarManager();
|
2011-01-30 18:28:44 +00:00
|
|
|
ChatCleanerManager &GetChatCleaner();
|
2007-11-16 15:24:25 +00:00
|
|
|
|
|
|
|
|
ServerStats GetStats() const;
|
2007-11-28 23:31:34 +00:00
|
|
|
boost::posix_time::ptime GetStartTime() const;
|
2010-09-04 23:00:39 +00:00
|
|
|
ServerMode GetServerMode() const;
|
2007-11-16 15:24:25 +00:00
|
|
|
|
2009-06-07 08:51:43 +00:00
|
|
|
SenderHelper &GetSender();
|
2009-06-12 15:48:34 +00:00
|
|
|
boost::asio::io_service &GetIOService();
|
2010-08-07 23:06:59 +00:00
|
|
|
boost::shared_ptr<ServerDBInterface> GetDatabase();
|
2009-06-18 20:16:22 +00:00
|
|
|
ServerBanManager &GetBanManager();
|
2009-01-31 22:20:08 +00:00
|
|
|
|
2007-11-16 15:24:25 +00:00
|
|
|
protected:
|
|
|
|
|
|
2009-05-04 21:11:29 +00:00
|
|
|
typedef std::deque<boost::shared_ptr<boost::asio::ip::tcp::socket> > ConnectQueue;
|
2011-03-14 20:08:10 +00:00
|
|
|
typedef std::list<boost::shared_ptr<SessionData> > SessionList;
|
2008-05-11 21:41:30 +00:00
|
|
|
typedef std::list<SessionId> SessionIdList;
|
2008-02-24 12:56:39 +00:00
|
|
|
typedef std::map<SessionId, boost::timers::portable::microsec_timer> TimerSessionMap;
|
2009-05-31 20:14:46 +00:00
|
|
|
typedef std::map<unsigned, boost::shared_ptr<ServerGame> > GameMap;
|
2008-02-24 12:56:39 +00:00
|
|
|
typedef std::map<std::string, boost::timers::portable::microsec_timer> TimerClientAddressMap;
|
2007-11-16 15:24:25 +00:00
|
|
|
typedef std::list<unsigned> RemoveGameList;
|
|
|
|
|
|
|
|
|
|
// Main function of the thread.
|
|
|
|
|
virtual void Main();
|
2009-05-10 14:57:51 +00:00
|
|
|
void RegisterTimers();
|
2009-06-12 15:48:34 +00:00
|
|
|
void CancelTimers();
|
2009-10-11 09:20:17 +00:00
|
|
|
void InitAuthContext();
|
|
|
|
|
void ClearAuthContext();
|
2009-08-14 22:05:01 +00:00
|
|
|
void InitChatCleaner();
|
2007-11-16 15:24:25 +00:00
|
|
|
|
2011-03-10 20:55:46 +00:00
|
|
|
void HandlePacket(boost::shared_ptr<SessionData> session, boost::shared_ptr<NetPacket> packet);
|
|
|
|
|
void HandleNetPacketInit(boost::shared_ptr<SessionData> session, const InitMessage_t &initMessage);
|
|
|
|
|
void HandleNetPacketAuthClientResponse(boost::shared_ptr<SessionData> session, const AuthClientResponse_t &clientResponse);
|
|
|
|
|
void HandleNetPacketAvatarHeader(boost::shared_ptr<SessionData> session, unsigned requestId, const AvatarHeader_t &avatarHeader);
|
|
|
|
|
void HandleNetPacketUnknownAvatar(boost::shared_ptr<SessionData> session, unsigned requestId, const UnknownAvatar_t &unknownAvatar);
|
|
|
|
|
void HandleNetPacketAvatarFile(boost::shared_ptr<SessionData> session, unsigned requestId, const AvatarData_t &avatarData);
|
|
|
|
|
void HandleNetPacketAvatarEnd(boost::shared_ptr<SessionData> session, unsigned requestId, const AvatarEnd_t &avatarEnd);
|
|
|
|
|
void HandleNetPacketRetrievePlayerInfo(boost::shared_ptr<SessionData> session, const PlayerInfoRequestMessage_t &playerInfoRequest);
|
|
|
|
|
void HandleNetPacketRetrieveAvatar(boost::shared_ptr<SessionData> session, const AvatarRequestMessage_t &retrieveAvatar);
|
2011-10-03 08:03:58 +00:00
|
|
|
void HandleNetPacketCreateGame(boost::shared_ptr<SessionData> session, bool autoLeave, const JoinNewGame_t &newGame);
|
|
|
|
|
void HandleNetPacketJoinGame(boost::shared_ptr<SessionData> session, bool autoLeave, const JoinExistingGame_t &joinGame);
|
2011-09-11 17:41:56 +00:00
|
|
|
void HandleNetPacketRejoinGame(boost::shared_ptr<SessionData> session, bool autoLeave, const RejoinExistingGame_t &rejoinGame);
|
2011-03-10 20:55:46 +00:00
|
|
|
void HandleNetPacketChatRequest(boost::shared_ptr<SessionData> session, const ChatRequestMessage_t &chatRequest);
|
|
|
|
|
void HandleNetPacketRejectGameInvitation(boost::shared_ptr<SessionData> session, const RejectGameInvitationMessage_t &reject);
|
2012-04-08 14:36:14 +00:00
|
|
|
void HandleNetPacketReportGame(boost::shared_ptr<SessionData> session, const ReportGameMessage_t &report);
|
2011-01-09 00:22:00 +00:00
|
|
|
// TODO would be better to use state pattern here.
|
2011-03-10 20:55:46 +00:00
|
|
|
void AuthChallenge(boost::shared_ptr<SessionData> session, const std::string &secret);
|
|
|
|
|
void CheckAvatarBlacklist(boost::shared_ptr<SessionData> session);
|
2011-01-09 00:22:00 +00:00
|
|
|
void AvatarBlacklisted(unsigned playerId);
|
|
|
|
|
void AvatarOK(unsigned playerId);
|
2011-03-10 20:55:46 +00:00
|
|
|
void InitAfterLogin(boost::shared_ptr<SessionData> session);
|
|
|
|
|
void EstablishSession(boost::shared_ptr<SessionData> session);
|
|
|
|
|
void AuthenticatePlayer(boost::shared_ptr<SessionData> session);
|
2010-04-01 16:20:57 +00:00
|
|
|
void UserValid(unsigned playerId, const DBPlayerData &dbPlayerData);
|
2009-10-11 12:07:56 +00:00
|
|
|
void UserInvalid(unsigned playerId);
|
2010-07-14 14:30:16 +00:00
|
|
|
void UserBlocked(unsigned playerId);
|
2011-01-09 00:22:00 +00:00
|
|
|
|
2010-12-24 16:46:49 +00:00
|
|
|
void SendReportAvatarResult(unsigned byPlayerId, unsigned reportedPlayerId, bool success);
|
2011-03-10 20:55:46 +00:00
|
|
|
void RequestPlayerAvatar(boost::shared_ptr<SessionData> session);
|
2009-06-12 15:48:34 +00:00
|
|
|
void TimerRemoveGame(const boost::system::error_code &ec);
|
|
|
|
|
void TimerRemovePlayer(const boost::system::error_code &ec);
|
2009-12-23 09:53:01 +00:00
|
|
|
void TimerUpdateClientLoginLock(const boost::system::error_code &ec);
|
2009-06-12 15:48:34 +00:00
|
|
|
void TimerCleanupAvatarCache(const boost::system::error_code &ec);
|
2007-11-16 15:24:25 +00:00
|
|
|
|
2010-07-14 08:17:07 +00:00
|
|
|
bool IsGameNameInUse(const std::string &gameName) const;
|
2009-06-01 10:23:44 +00:00
|
|
|
boost::shared_ptr<ServerGame> InternalGetGameFromId(unsigned gameId);
|
2009-05-31 20:14:46 +00:00
|
|
|
void InternalAddGame(boost::shared_ptr<ServerGame> game);
|
|
|
|
|
void InternalRemoveGame(boost::shared_ptr<ServerGame> game);
|
2008-03-06 15:27:31 +00:00
|
|
|
void InternalRemovePlayer(unsigned playerId, unsigned errorCode);
|
2012-01-08 13:02:29 +00:00
|
|
|
void InternalMutePlayerInGame(unsigned playerId);
|
2011-03-10 20:55:46 +00:00
|
|
|
void InternalResubscribeMsg(boost::shared_ptr<SessionData> session);
|
2007-11-16 15:24:25 +00:00
|
|
|
|
2011-03-10 20:55:46 +00:00
|
|
|
void HandleReAddedSession(boost::shared_ptr<SessionData> session);
|
2007-11-16 15:24:25 +00:00
|
|
|
|
2011-12-11 14:54:17 +00:00
|
|
|
void SessionTimeoutWarning(boost::shared_ptr<SessionData> session, unsigned remainingSec);
|
2007-11-16 15:24:25 +00:00
|
|
|
|
|
|
|
|
void CleanupSessionMap();
|
|
|
|
|
|
2011-03-10 20:55:46 +00:00
|
|
|
void CloseSession(boost::shared_ptr<SessionData> session);
|
2007-11-16 15:24:25 +00:00
|
|
|
void SendError(boost::shared_ptr<SessionData> s, int errorCode);
|
2010-03-31 14:08:46 +00:00
|
|
|
void SendJoinGameFailed(boost::shared_ptr<SessionData> s, unsigned gameId, int reason);
|
2009-08-15 13:43:00 +00:00
|
|
|
void SendPlayerList(boost::shared_ptr<SessionData> s);
|
2007-11-16 15:24:25 +00:00
|
|
|
void SendGameList(boost::shared_ptr<SessionData> s);
|
|
|
|
|
void UpdateStatisticsNumberOfPlayers();
|
|
|
|
|
void BroadcastStatisticsUpdate(const ServerStats &stats);
|
|
|
|
|
|
|
|
|
|
void ReadStatisticsFile();
|
2009-06-12 15:48:34 +00:00
|
|
|
void TimerSaveStatisticsFile(const boost::system::error_code &ec);
|
2007-11-16 15:24:25 +00:00
|
|
|
|
2009-09-19 20:28:30 +00:00
|
|
|
InternalServerCallback &GetSenderCallback();
|
2007-11-16 15:24:25 +00:00
|
|
|
GuiInterface &GetGui();
|
2009-08-20 11:42:13 +00:00
|
|
|
ServerIrcBotCallback &GetIrcBotCallback();
|
2007-11-16 15:24:25 +00:00
|
|
|
|
2011-12-27 17:26:03 +00:00
|
|
|
unsigned GetPlayerId(const std::string &name) const;
|
2007-11-16 15:24:25 +00:00
|
|
|
|
2009-08-15 13:43:00 +00:00
|
|
|
static boost::shared_ptr<NetPacket> CreateNetPacketPlayerListNew(unsigned playerId);
|
|
|
|
|
static boost::shared_ptr<NetPacket> CreateNetPacketPlayerListLeft(unsigned playerId);
|
2009-05-31 20:14:46 +00:00
|
|
|
static boost::shared_ptr<NetPacket> CreateNetPacketGameListNew(const ServerGame &game);
|
2007-11-16 15:24:25 +00:00
|
|
|
static boost::shared_ptr<NetPacket> CreateNetPacketGameListUpdate(unsigned gameId, GameMode mode);
|
|
|
|
|
|
2011-09-11 17:41:56 +00:00
|
|
|
u_int32_t GetRejoinGameIdForPlayer(const std::string &playerName, const std::string &guid, unsigned &outPlayerUniqueId);
|
|
|
|
|
|
2007-11-16 15:24:25 +00:00
|
|
|
private:
|
|
|
|
|
|
2009-05-04 21:11:29 +00:00
|
|
|
boost::shared_ptr<boost::asio::io_service> m_ioService;
|
2009-06-04 20:37:18 +00:00
|
|
|
|
2009-09-19 20:28:30 +00:00
|
|
|
boost::shared_ptr<InternalServerCallback> m_internalServerCallback;
|
2009-06-07 08:51:43 +00:00
|
|
|
boost::shared_ptr<SenderHelper> m_sender;
|
2009-05-04 21:11:29 +00:00
|
|
|
|
2007-11-16 15:24:25 +00:00
|
|
|
SessionManager m_sessionManager;
|
|
|
|
|
SessionManager m_gameSessionManager;
|
|
|
|
|
|
2009-10-11 09:20:17 +00:00
|
|
|
Gsasl *m_authContext;
|
|
|
|
|
|
2009-12-23 09:53:01 +00:00
|
|
|
TimerClientAddressMap m_timerClientAddressMap;
|
|
|
|
|
mutable boost::mutex m_timerClientAddressMapMutex;
|
2008-02-24 12:56:39 +00:00
|
|
|
|
2007-11-16 15:24:25 +00:00
|
|
|
RemoveGameList m_removeGameList;
|
|
|
|
|
mutable boost::mutex m_removeGameListMutex;
|
|
|
|
|
|
|
|
|
|
PlayerDataMap m_computerPlayers;
|
|
|
|
|
mutable boost::mutex m_computerPlayersMutex;
|
|
|
|
|
|
|
|
|
|
GameMap m_gameMap;
|
|
|
|
|
|
|
|
|
|
GuiInterface &m_gui;
|
2009-08-20 11:42:13 +00:00
|
|
|
ServerIrcBotCallback &m_ircBotCb;
|
2007-11-16 15:24:25 +00:00
|
|
|
AvatarManager &m_avatarManager;
|
|
|
|
|
|
2010-09-03 21:40:14 +00:00
|
|
|
const ServerMode m_mode;
|
2007-11-16 15:24:25 +00:00
|
|
|
std::string m_statisticsFileName;
|
2011-01-03 18:41:28 +00:00
|
|
|
ConfigFile &m_serverConfig;
|
2007-11-16 15:24:25 +00:00
|
|
|
u_int32_t m_curGameId;
|
|
|
|
|
|
|
|
|
|
u_int32_t m_curUniquePlayerId;
|
|
|
|
|
u_int32_t m_curSessionId;
|
|
|
|
|
mutable boost::mutex m_curUniquePlayerIdMutex;
|
|
|
|
|
|
|
|
|
|
ServerStats m_statData;
|
|
|
|
|
bool m_statDataChanged;
|
|
|
|
|
mutable boost::mutex m_statMutex;
|
|
|
|
|
|
2009-06-18 20:16:22 +00:00
|
|
|
boost::shared_ptr<ServerBanManager> m_banManager;
|
2009-08-14 22:05:01 +00:00
|
|
|
boost::shared_ptr<ChatCleanerManager> m_chatCleanerManager;
|
2009-09-19 20:28:30 +00:00
|
|
|
boost::shared_ptr<ServerDBInterface> m_database;
|
2009-06-18 20:16:22 +00:00
|
|
|
|
2009-06-12 15:48:34 +00:00
|
|
|
boost::asio::deadline_timer m_removeGameTimer;
|
|
|
|
|
boost::asio::deadline_timer m_saveStatisticsTimer;
|
2009-12-23 09:53:01 +00:00
|
|
|
boost::asio::deadline_timer m_loginLockTimer;
|
2009-06-12 15:48:34 +00:00
|
|
|
|
2011-02-09 22:09:29 +00:00
|
|
|
boost::uuids::random_generator m_sessionIdGenerator;
|
|
|
|
|
|
2007-11-28 23:31:34 +00:00
|
|
|
const boost::posix_time::ptime m_startTime;
|
2009-09-24 20:10:40 +00:00
|
|
|
|
2011-02-11 20:02:08 +00:00
|
|
|
friend class InternalServerCallback;
|
2007-11-16 15:24:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|