|
Trippin Cyril
|
A wrapper class for pipes. More...
#include <Pipe.h>
Public Member Functions | |
| Pipe (const Module *pModule=NULL) | |
| virtual | ~Pipe () |
| int | Read (char *buffer, size_t len) |
| int | Write (const char *buffer, size_t len) override |
Public Member Functions inherited from trippingcyril::trippingcyril::Event | |
| Event (const Module *module) | |
| virtual | ~Event () |
| const Module * | GetModule () const |
Public Member Functions inherited from trippingcyril::Writer | |
| int | WriteString (const String &data) |
| virtual bool | shouldDelete () const override |
Protected Member Functions | |
| virtual void | OnRead ()=0 |
Protected Member Functions inherited from trippingcyril::trippingcyril::Event | |
| event_base * | GetEventBase () const |
| evdns_base * | GetDNSBase () const |
Additional Inherited Members | |
Static Public Attributes inherited from trippingcyril::Writer | |
| static const int | BUFFER_SIZE |
Protected Attributes inherited from trippingcyril::trippingcyril::Event | |
| const Module * | module |
A wrapper class for pipes.
| trippingcyril::Pipe::Pipe | ( | const Module * | pModule = NULL | ) |
General constructor
| pModule | The module to register this pipe on |
| std::runtime_error | If the pipe() system call failed |
|
virtual |
Deconstructor, will close both ends of the pipe
|
protectedpure virtual |
Override this method with your own stuff to do when read operations happen
|
inline |
Generic read operation from this pipe, similar to read(2)
|
inlineoverridevirtual |
Generic write operation to this pipe, similar to write(2)
Implements trippingcyril::Writer.
1.8.6