Mono Class Library: Mono.Unix Namespace

Mono.Unix.UnixPipes Structure

Provides information about a Unix pipe. [Edit]

See Also: UnixPipes Members

public struct UnixPipes : IEquatable<UnixPipes>

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Remarks

A Unix pipe is an object allowing bidirectional data flow through a pair of Mono.Unix.UnixStreams.

UnixPipes.Reading is the read end of the pipe, while UnixPipes.Writing is the write end of the pipe. Data written to UnixPipes.Writing can be read through UnixPipes.Reading. This allows the output of one program to be sent to another program: the source's standard output is set up to be the write end of the pipe, and the sink's standard input is set up to be the read end of the pipe.

The pipe persists until UnixPipes.Reading and UnixPipes.Writing are closed.

A pipe that has had an end closed is considered widowed. Writing on such a pipe causes the writing process to receive a Mono.Unix.Native.Signum.SIGPIPE signal. Widowing a pipe is the only way to deliver end-of-file to a reader: after the reader consumes any buffered data, reading a widowed pipe returns a zero count.

[Edit]

Requirements

Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0