# ConnectionInactivityChecker.hpp

This File On Github
Ask A Question

API: latest
module: oatpp
#include "oatpp/network/monitor/ConnectionInactivityChecker.hpp"

# ConnectionInactivityChecker

ConnectionInactivityChecker - checks if a connection is inactive (has no read/writes) and whether it should be closed. Extends - oatpp::network::monitor::MetricsChecker.

namespace oatpp { namespace network { namespace monitor { 
  class ConnectionInactivityChecker : public MetricsChecker {}

# Methods

Return Type Name Summary
[none] ConnectionInactivityChecker Constructor.

# ConnectionInactivityChecker::ConnectionInactivityChecker


  • @param lastReadTimeout - how long can live connection without reads.
  • @param lastWriteTimeout - how long can live connection without writes.

ConnectionInactivityChecker(const std::chrono::duration<v_int64, std::micro>& lastReadTimeout,
                            const std::chrono::duration<v_int64, std::micro>& lastWriteTimeout)