|
libmoost
|
#include <nsca_client.hpp>

Classes | |
| struct | service_state |
Public Member Functions | |
| nsca_client (nsca_config const &cfg) | |
| nsca_client (boost::shared_ptr< nsca_config > cfg) | |
| void | send (std::string payload) const |
| void | send (std::string hostname, std::string svc_description, boost::int16_t return_code, std::string plugin_output) const |
Private Types | |
| typedef boost::shared_ptr < nsca_crypto > | crypto_ptr |
| typedef boost::shared_ptr < boost::asio::ip::tcp::socket > | socket_ptr |
Private Member Functions | |
| void | init_packet (nsca_data_packet &send_packet) const |
| socket_ptr | connect (boost::asio::io_service &io_service) const |
| void | recv (socket_ptr psock, nsca_init_packet &packet) const |
| void | send (socket_ptr psock, nsca_data_packet &packet) const |
| void | send (nsca_data_packet const &send_packet) const |
Private Attributes | |
| boost::shared_ptr< nsca_config > | cfg_ |
| nsca_crc32 | crc32_ |
Definition at line 49 of file nsca_client.hpp.
typedef boost::shared_ptr<nsca_crypto> moost::nagios::nsca_client::crypto_ptr [private] |
Definition at line 110 of file nsca_client.hpp.
typedef boost::shared_ptr<boost::asio::ip::tcp::socket> moost::nagios::nsca_client::socket_ptr [private] |
Definition at line 112 of file nsca_client.hpp.
| moost::nagios::nsca_client::nsca_client | ( | nsca_config const & | cfg | ) | [inline] |
Definition at line 62 of file nsca_client.hpp.
| moost::nagios::nsca_client::nsca_client | ( | boost::shared_ptr< nsca_config > | cfg | ) | [inline] |
Definition at line 67 of file nsca_client.hpp.
| socket_ptr moost::nagios::nsca_client::connect | ( | boost::asio::io_service & | io_service | ) | const [inline, private] |
| void moost::nagios::nsca_client::init_packet | ( | nsca_data_packet & | send_packet | ) | const [inline, private] |
Definition at line 114 of file nsca_client.hpp.


| void moost::nagios::nsca_client::recv | ( | socket_ptr | psock, |
| nsca_init_packet & | packet | ||
| ) | const [inline, private] |
| void moost::nagios::nsca_client::send | ( | std::string | payload | ) | const [inline] |
Definition at line 74 of file nsca_client.hpp.


| void moost::nagios::nsca_client::send | ( | std::string | hostname, |
| std::string | svc_description, | ||
| boost::int16_t | return_code, | ||
| std::string | plugin_output | ||
| ) | const [inline] |
| void moost::nagios::nsca_client::send | ( | socket_ptr | psock, |
| nsca_data_packet & | packet | ||
| ) | const [inline, private] |
Definition at line 154 of file nsca_client.hpp.
| void moost::nagios::nsca_client::send | ( | nsca_data_packet const & | send_packet | ) | const [inline, private] |
boost::shared_ptr<nsca_config> moost::nagios::nsca_client::cfg_ [private] |
Definition at line 211 of file nsca_client.hpp.
nsca_crc32 moost::nagios::nsca_client::crc32_ [private] |
Definition at line 212 of file nsca_client.hpp.