13 class Pipe
: public Socket
15 /** The FD of the write pipe
16 * this->Sock is the readfd
20 /** Default constructor
21 * @param d Pipe data for r/w sockets
25 /** Destructor, closes WriteFD
29 /** Allocates and returns a new Pipe
30 * @return the new Pipe
32 static Pipe
*Create();
34 /** Called when data is to be read
38 /** Called when data can be written
42 /** Called when this pipe needs to be woken up
46 /** Should be overloaded to do something useful
48 virtual void OnNotify() = 0;