libmoost
moost::nagios::nsca_client Class Reference

#include <nsca_client.hpp>

Collaboration diagram for moost::nagios::nsca_client:

List of all members.

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_configcfg_
nsca_crc32 crc32_

Detailed Description

Definition at line 49 of file nsca_client.hpp.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

socket_ptr moost::nagios::nsca_client::connect ( boost::asio::io_service &  io_service) const [inline, private]

Definition at line 120 of file nsca_client.hpp.

Here is the caller graph for this function:

void moost::nagios::nsca_client::init_packet ( nsca_data_packet send_packet) const [inline, private]

Definition at line 114 of file nsca_client.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void moost::nagios::nsca_client::recv ( socket_ptr  psock,
nsca_init_packet packet 
) const [inline, private]

Definition at line 142 of file nsca_client.hpp.

Here is the caller graph for this function:

void moost::nagios::nsca_client::send ( std::string  payload) const [inline]

Definition at line 74 of file nsca_client.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void moost::nagios::nsca_client::send ( std::string  hostname,
std::string  svc_description,
boost::int16_t  return_code,
std::string  plugin_output 
) const [inline]

Definition at line 86 of file nsca_client.hpp.

Here is the call graph for this function:

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]

Definition at line 163 of file nsca_client.hpp.

Here is the call graph for this function:


Member Data Documentation

boost::shared_ptr<nsca_config> moost::nagios::nsca_client::cfg_ [private]

Definition at line 211 of file nsca_client.hpp.

Definition at line 212 of file nsca_client.hpp.


The documentation for this class was generated from the following file: