Creates and initializes a Mono.Unix.UnixStream instance, wrapping the specified file descriptor fileDescriptor.
- fileDescriptor
- A int containing a file descriptor.
- ownsHandle
- A bool specifying whether or not the created Mono.Unix.UnixStream instance "owns" fileDescriptor.
Type Reason ArgumentException fileDescriptor is equal to UnixStream.InvalidFileDescriptor.
If ownsHandle is true, then fileDescriptor will be closed via Mono.Unix.Native.Syscall.close when UnixStream.Close is invoked (which is also called from the finalizer and from the IDisposable implementation). Otherwise, fileDescriptor will only be flushed on UnixStream.Close and not actually closed.
Namespace: Mono.Unix
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0