Descriptor representing a Pipe used for InterProcess Communication (IPC) More...
#include <FileDescriptor.h>
Public Types | |
enum | InheritableReadFlag { ReadInheritable , ReadNonInheritable } |
Specifies a flag for read side of the pipe. More... | |
enum | InheritableWriteFlag { WriteInheritable , WriteNonInheritable } |
Specifies a flag for write side of the pipe. More... | |
Public Member Functions | |
Result | createPipe (InheritableReadFlag readFlag=ReadNonInheritable, InheritableWriteFlag writeFlag=WriteNonInheritable) |
Creates a Pipe. More... | |
Result | close () |
Closes the pipe. More... | |
Public Attributes | |
FileDescriptor | readPipe |
The read side of the pipe. More... | |
FileDescriptor | writePipe |
The write side of the pipe. More... | |
Descriptor representing a Pipe used for InterProcess Communication (IPC)
Result SC::PipeDescriptor::close | ( | ) |
Closes the pipe.
Result SC::PipeDescriptor::createPipe | ( | InheritableReadFlag | readFlag = ReadNonInheritable , |
InheritableWriteFlag | writeFlag = WriteNonInheritable |
||
) |
Creates a Pipe.
File descriptors are created with blocking mode enabled by default.
readFlag | Specifies how the read side should be created |
writeFlag | Specifies how the write side should be created |
FileDescriptor SC::PipeDescriptor::readPipe |
The read side of the pipe.
FileDescriptor SC::PipeDescriptor::writePipe |
The write side of the pipe.