7 #include "stg/os_int.h"
 
  11         USER(const std::string & login,
 
  12              const std::string & password,
 
  16         const std::string & GetLogin() const { return login; }
 
  17         uint32_t GetIP() const { return ip; }
 
  18         uint32_t GetAliveTimeout() const { return aliveTimeout; }
 
  19         uint32_t GetUserTimeout() const { return userTimeout; }
 
  20         int GetPhase() const { return phase; }
 
  21         int GetRnd() const { return rnd; }
 
  22         int GetSocket() const { return sock; }
 
  23         time_t GetPhaseChangeTime() const { return phaseChangeTime; }
 
  25         BLOWFISH_CTX * GetCtx() { return &ctx; }
 
  27         void SetPhase(int p) { phase = p; time(&phaseChangeTime); }
 
  28         void SetRnd(int r) { rnd = r; }
 
  29         int IncRnd() { return ++rnd; }
 
  30         void SetAliveTimeout(uint32_t timeout) { aliveTimeout = timeout; }
 
  31         void SetUserTimeout(uint32_t timeout) { userTimeout = timeout; }
 
  37         uint32_t aliveTimeout;
 
  40         time_t phaseChangeTime;