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();
44 void onServerStart(RcfServer & server);
45 void onServerStop(RcfServer & server);
51 std::vector<NetworkSessionWeakPtr> mSessionsTemp;
53 std::uint32_t mSessionTimeoutMs;
54 std::uint32_t mReapingIntervalMs;
55 RcfServer * mpRcfServer;
56 PeriodicTimer mPeriodicTimer;
59 typedef std::shared_ptr<SessionTimeoutService> SessionTimeoutServicePtr;
63 #endif // ! INCLUDE_RCF_SESSIONTIMEOUTSERVICE_HPP Definition: AmiIoHandler.hpp:24