2021-05-31 05:42:20 +00:00
|
|
|
//
|
2021-07-08 06:30:47 +00:00
|
|
|
// Copyright (c) 2013-2021 The SRS Authors
|
2021-05-31 05:42:20 +00:00
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
//
|
2014-05-19 07:45:04 +00:00
|
|
|
|
|
|
|
#ifndef SRS_APP_HEARTBEAT_HPP
|
|
|
|
#define SRS_APP_HEARTBEAT_HPP
|
|
|
|
|
|
|
|
#include <srs_core.hpp>
|
|
|
|
|
2019-04-28 01:08:05 +00:00
|
|
|
// The http heartbeat to api-server to notice api that the information of SRS.
|
2014-05-19 09:39:01 +00:00
|
|
|
class SrsHttpHeartbeat
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SrsHttpHeartbeat();
|
|
|
|
virtual ~SrsHttpHeartbeat();
|
|
|
|
public:
|
|
|
|
virtual void heartbeat();
|
2018-01-01 11:39:57 +00:00
|
|
|
private:
|
|
|
|
virtual srs_error_t do_heartbeat();
|
2014-05-19 09:39:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|