#ifndef JSONRPCCLIENT_H #define JSONRPCCLIENT_H namespace icinga { struct I2_JSONRPC_API NewMessageEventArgs : public EventArgs { typedef shared_ptr Ptr; typedef weak_ptr WeakPtr; Message::Ptr Message; }; class I2_JSONRPC_API JsonRpcClient : public TCPClient { private: int DataAvailableHandler(EventArgs::Ptr ea); public: typedef shared_ptr Ptr; typedef weak_ptr WeakPtr; void SendMessage(Message::Ptr message); virtual void Start(void); Event OnNewMessage; }; } #endif /* JSONRPCCLIENT_H */