openshot-audio
0.1.6
|
#include <juce_core.h>
Classes | |
class | Pimpl |
Public Member Functions | |
NamedPipe () | |
~NamedPipe () | |
bool | openExisting (const String &pipeName) |
bool | createNewPipe (const String &pipeName) |
void | close () |
bool | isOpen () const |
String | getName () const |
int | read (void *destBuffer, int maxBytesToRead, int timeOutMilliseconds) |
int | write (const void *sourceBuffer, int numBytesToWrite, int timeOutMilliseconds) |
A cross-process pipe that can have data written to and read from it.
Two processes can use NamedPipe objects to exchange blocks of data.
NamedPipe::NamedPipe | ( | ) |
Creates a NamedPipe.
NamedPipe::~NamedPipe | ( | ) |
Destructor.
void NamedPipe::close | ( | ) |
Closes the pipe, if it's open.
Tries to create a new pipe. Returns true if it succeeds.
String NamedPipe::getName | ( | ) | const |
Returns the last name that was used to try to open this pipe.
bool NamedPipe::isOpen | ( | ) | const |
True if the pipe is currently open.
Tries to open a pipe that already exists. Returns true if it succeeds.
Reads data from the pipe.
This will block until another thread has written enough data into the pipe to fill the number of bytes specified, or until another thread calls the cancelPendingReads() method.
If the operation fails, it returns -1, otherwise, it will return the number of bytes read.
If timeOutMilliseconds is less than zero, it will wait indefinitely, otherwise this is a maximum timeout for reading from the pipe.
Writes some data to the pipe.