class CoreExport StreamSocket : public EventHandler
{
/** Module that handles raw I/O for this socket, or NULL */
- Module *IOHook;
+ reference<Module> IOHook;
/** Private send queue. Note that individual strings may be shared
*/
std::deque<std::string> sendq;
protected:
std::string recvq;
public:
- StreamSocket() : IOHook(NULL), sendq_len(0) {}
+ StreamSocket() : sendq_len(0) {}
inline Module* GetIOHook() { return IOHook; }
inline void AddIOHook(Module* m) { IOHook = m; }
inline void DelIOHook() { IOHook = NULL; }
*/
virtual void Close();
/** This ensures that close is called prior to destructor */
- virtual bool cull();
+ virtual CullResult cull();
};
/**
* BufferedSocket is an extendable socket class which modules