18 #ifndef INCLUDE_RCF_SESSIONTIMEOUTSERVICE_HPP 19 #define INCLUDE_RCF_SESSIONTIMEOUTSERVICE_HPP 23 #include <RCF/Export.hpp> 24 #include <RCF/PeriodicTimer.hpp> 25 #include <RCF/Service.hpp> 31 typedef std::shared_ptr<NetworkSession> NetworkSessionPtr;
32 typedef std::weak_ptr<NetworkSession> NetworkSessionWeakPtr;
34 class RCF_EXPORT SessionTimeoutService :
public I_Service
37 SessionTimeoutService();
43 void onServerStart(RcfServer & server);
44 void onServerStop(RcfServer & server);
50 std::vector<NetworkSessionWeakPtr> mSessionsTemp;
52 std::uint32_t mSessionTimeoutMs;
53 std::uint32_t mReapingIntervalMs;
54 RcfServer * mpRcfServer;
55 PeriodicTimer mPeriodicTimer;
58 typedef std::shared_ptr<SessionTimeoutService> SessionTimeoutServicePtr;
62 #endif // ! INCLUDE_RCF_SESSIONTIMEOUTSERVICE_HPP Definition: AmiIoHandler.hpp:23