#ifndef TCPCLIENT_H #define TCPCLIENT_H namespace icinga { class TCPClient : public TCPSocket { private: FIFO::Ptr m_SendQueue; FIFO::Ptr m_RecvQueue; int ReadableEventHandler(EventArgs::Ptr ea); int WritableEventHandler(EventArgs::Ptr ea); public: typedef shared_ptr Ptr; typedef weak_ptr WeakPtr; TCPClient(void); virtual void Start(void); void Connect(const char *hostname, unsigned short port); FIFO::Ptr GetSendQueue(void); FIFO::Ptr GetRecvQueue(void); virtual bool WantsToRead(void) const; virtual bool WantsToWrite(void) const; event OnDataAvailable; }; } #endif /* TCPCLIENT_H */