]> git.stg.codes - stg.git/blobdiff - projects/sgauthstress/proto.h
Implement connecting and disconnecting users
[stg.git] / projects / sgauthstress / proto.h
index 05fe472266ef092f2d6f9539d83a516b4b316b09..a63a4f90c3e6e7bf5df600363d5509fc62b9f6e2 100644 (file)
@@ -31,7 +31,7 @@ class PROTO {
 
         const std::string GetStrError() const { return errorStr; }
 
-        void AddUser(const USER & user);
+        void AddUser(const USER & user, bool connect = false);
 
         bool Connect(uint32_t ip);
         bool Disconnect(uint32_t ip);
@@ -74,6 +74,9 @@ class PROTO {
         bool Send_DISCONN_SYN(USER * user);
         bool Send_DISCONN_ACK(USER * user);
         bool Send_ALIVE_ACK(USER * user);
+
+        bool RealConnect(USER * user);
+        bool RealDisconnect(USER * user);
 };
 
 #endif