19 #ifndef INCLUDE_RCF_SESSIONTIMEOUTSERVICE_HPP 20 #define INCLUDE_RCF_SESSIONTIMEOUTSERVICE_HPP 24 #include <RCF/Export.hpp> 25 #include <RCF/PeriodicTimer.hpp> 26 #include <RCF/Service.hpp> 32 typedef std::shared_ptr<NetworkSession> NetworkSessionPtr;
33 typedef std::weak_ptr<NetworkSession> NetworkSessionWeakPtr;
35 class RCF_EXPORT SessionTimeoutService :
public I_Service
38 SessionTimeoutService();
42 void onServerStart(RcfServer & server);
43 void onServerStop(RcfServer & server);
49 std::vector<NetworkSessionWeakPtr> mSessionsTemp;
51 std::uint32_t mSessionTimeoutMs;
52 std::uint32_t mReapingIntervalMs;
53 RcfServer * mpRcfServer;
54 PeriodicTimer mPeriodicTimer;
57 typedef std::shared_ptr<SessionTimeoutService> SessionTimeoutServicePtr;
61 #endif // ! INCLUDE_RCF_SESSIONTIMEOUTSERVICE_HPP Definition: AmiIoHandler.hpp:24