mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-16 01:40:52 +08:00
550b1095de
This reverts commit dff6771da7
.
24 lines
372 B
C++
24 lines
372 B
C++
#pragma once
|
|
#include <vector>
|
|
|
|
class ServerConnection;
|
|
|
|
class ServerManager : public acl::singleton <ServerManager>
|
|
{
|
|
public:
|
|
ServerManager() {}
|
|
~ServerManager() {}
|
|
|
|
void set(ServerConnection* conn);
|
|
void del(ServerConnection* conn);
|
|
ServerConnection* min();
|
|
|
|
size_t length() const
|
|
{
|
|
return conns_.size();
|
|
}
|
|
|
|
private:
|
|
std::vector<ServerConnection*> conns_;
|
|
};
|