int purple_input_pipe ( int* pipefd )
Creates a pipe - an unidirectional data channel that can be used for interprocess communication.
File descriptors for both ends of pipe will be written into provided array. The first one (pipefd) can be used for reading, the second one (pipefd) for writing.
On Windows it’s simulated by creating a pair of connected sockets, on other
pipe() is used.
Array used to return file descriptors for both ends of pipe.
|The data is owned by the caller of the function.|