]> git.stg.codes - stg.git/blobdiff - projects/rscriptd/listener.h
Move projects back into subfolder.
[stg.git] / projects / rscriptd / listener.h
index c6fb143a05c3104aeba54530ef9f1c12e296c31c..7fb71ee388629e35b1788a4828331449aabc6feb 100644 (file)
@@ -25,8 +25,8 @@
 #include <vector>
 #include <list>
 #include <functional>
+#include <cstdint>
 
-#include "stg/os_int.h"
 #include "stg/blowfish.h"
 #include "stg/rs_packets.h"
 #include "stg/logger.h"
@@ -56,7 +56,7 @@ struct AliveData : public UserData
 
 class IsNotTimedOut : public std::unary_function<const AliveData &, bool> {
     public:
-        IsNotTimedOut(double to) : timeout(to), now(time(NULL)) {}
+        explicit IsNotTimedOut(double to) : timeout(to), now(time(NULL)) {}
         bool operator()(const AliveData & data) const
         {
             return difftime(now, data.lastAlive) < timeout;
@@ -105,7 +105,7 @@ private:
     bool                Connect(const UserData & data) const;
 
     BLOWFISH_CTX        ctxS;
-    STG_LOGGER &        WriteServLog;
+    STG::Logger&        WriteServLog;
 
     mutable std::string errorStr;
     std::string         scriptOnConnect;
@@ -133,7 +133,7 @@ private:
 
 class DisconnectUser : public std::unary_function<const UserData &, void> {
     public:
-        DisconnectUser(LISTENER & l) : listener(l) {};
+        explicit DisconnectUser(LISTENER & l) : listener(l) {};
         void operator()(const UserData & data)
         {
             listener.Disconnect(data);