mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
25 lines
455 B
C++
25 lines
455 B
C++
//
|
|
// Copyright (c) 2013-2023 The SRS Authors
|
|
//
|
|
// SPDX-License-Identifier: MIT or MulanPSL-2.0
|
|
//
|
|
|
|
#ifndef SRS_APP_HEARTBEAT_HPP
|
|
#define SRS_APP_HEARTBEAT_HPP
|
|
|
|
#include <srs_core.hpp>
|
|
|
|
// The http heartbeat to api-server to notice api that the information of SRS.
|
|
class SrsHttpHeartbeat
|
|
{
|
|
public:
|
|
SrsHttpHeartbeat();
|
|
virtual ~SrsHttpHeartbeat();
|
|
public:
|
|
virtual void heartbeat();
|
|
private:
|
|
virtual srs_error_t do_heartbeat();
|
|
};
|
|
|
|
#endif
|
|
|