This repository has been archived by the owner on Feb 21, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
871 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#pragma once | ||
#include <memory> | ||
#include <string> | ||
#include <stdint.h> | ||
|
||
#include <fc/time.hpp> | ||
|
||
namespace bts { namespace client { | ||
namespace detail { | ||
class bts_gntp_notifier_impl; | ||
} | ||
|
||
class bts_gntp_notifier { | ||
public: | ||
bts_gntp_notifier(const std::string& host_to_notify = "127.0.0.1", uint16_t port = 23053, | ||
const fc::optional<std::string>& password = fc::optional<std::string>()); | ||
~bts_gntp_notifier(); | ||
|
||
void client_is_shutting_down(); | ||
void notify_connection_count_changed(uint32_t new_connection_count); | ||
void notify_client_exiting_unexpectedly(); | ||
void notify_head_block_too_old(const fc::time_point_sec& head_block_age); | ||
private: | ||
std::unique_ptr<detail::bts_gntp_notifier_impl> my; | ||
}; | ||
typedef std::shared_ptr<bts_gntp_notifier> bts_gntp_notifier_ptr; | ||
|
||
} } // end namespace bts::client |
Oops, something went wrong.