icinga2/icinga/jsonrpcendpoint.h

27 lines
512 B
C
Raw Normal View History

#ifndef JSONRPCENDPOINT_H
#define JSONRPCENDPOINT_H
namespace icinga
{
class I2_ICINGA_API JsonRpcEndpoint : public Endpoint
{
2012-04-16 16:27:41 +02:00
private:
JsonRpcClient::Ptr m_Client;
bool IsConnected(void) const;
public:
2012-04-16 16:27:41 +02:00
JsonRpcEndpoint(void);
JsonRpcClient::Ptr GetClient(void);
void SetClient(JsonRpcClient::Ptr client);
virtual void SendRequest(Endpoint::Ptr sender, JsonRpcRequest::Ptr message);
virtual void SendResponse(Endpoint::Ptr sender, JsonRpcResponse::Ptr message);
};
}
2012-04-16 16:27:41 +02:00
#endif /* JSONRPCENDPOINT_H */