2012-04-02 08:56:30 +02:00
|
|
|
#ifndef NETSTRING_H
|
|
|
|
#define NETSTRING_H
|
2012-03-28 13:24:49 +02:00
|
|
|
|
|
|
|
namespace icinga
|
|
|
|
{
|
|
|
|
|
|
|
|
class Netstring : public Object
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
size_t m_Length;
|
|
|
|
void *m_Data;
|
|
|
|
|
|
|
|
public:
|
2012-04-02 20:50:35 +02:00
|
|
|
typedef shared_ptr<Netstring> Ptr;
|
|
|
|
typedef weak_ptr<Netstring> WeakPtr;
|
2012-03-28 13:24:49 +02:00
|
|
|
|
2012-04-02 20:50:35 +02:00
|
|
|
static cJSON *ReadJSONFromFIFO(FIFO::Ptr fifo);
|
|
|
|
static void WriteJSONToFIFO(FIFO::Ptr fifo, cJSON *object);
|
2012-03-28 13:24:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-04-02 08:56:30 +02:00
|
|
|
#endif /* NETSTRING_H */
|