mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-06 01:03:52 +00:00
38 lines
729 B
C++
38 lines
729 B
C++
#ifndef LOGINSERVERLIST_H_
|
|
#define LOGINSERVERLIST_H_
|
|
|
|
#include "../common/servertalk.h"
|
|
#include "../common/timer.h"
|
|
#include "../common/queue.h"
|
|
#include "../common/eq_packet_structs.h"
|
|
#include "../common/mutex.h"
|
|
#include <list>
|
|
|
|
class LoginServer;
|
|
|
|
class LoginServerList{
|
|
public:
|
|
LoginServerList();
|
|
~LoginServerList();
|
|
|
|
void Add(const char*, uint16, const char*, const char*, bool);
|
|
|
|
bool SendInfo();
|
|
bool SendStatus();
|
|
|
|
bool SendPacket(ServerPacket *pack);
|
|
bool SendAccountUpdate(ServerPacket *pack);
|
|
bool Connected();
|
|
bool AllConnected();
|
|
bool CanUpdate();
|
|
size_t GetServerCount() const { return m_list.size(); }
|
|
|
|
protected:
|
|
std::list<std::unique_ptr<LoginServer>> m_list;
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif /*LOGINSERVERLIST_H_*/
|