#include <poll.h>
#include <string>
+#include <vector>
#include <map>
#include "stg/os_int.h"
bool Connect(uint32_t ip);
bool Disconnect(uint32_t ip);
+
+ size_t UserCount() const { return users.size(); }
private:
BLOWFISH_CTX ctx;
struct sockaddr_in localAddr;
struct sockaddr_in serverAddr;
int timeout;
- std::map<uint32_t, USER> users;
+ std::vector<std::pair<uint32_t, USER> > users;
std::vector<struct pollfd> pollFds;
bool running;