]> git.stg.codes - stg.git/blobdiff - projects/sgauthstress/proto.h
A map of ip-to-user replaced with vector of pairs
[stg.git] / projects / sgauthstress / proto.h
index 879e7a35b11a49e3a367842a7de31705bb6429ac..0a2fb2de7648ba3f3675d2bbb9f59aa7ddb56b2e 100644 (file)
@@ -6,6 +6,7 @@
 #include <poll.h>
 
 #include <string>
+#include <vector>
 #include <map>
 
 #include "stg/os_int.h"
@@ -40,7 +41,7 @@ class PROTO {
         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;