C# Class Rsdn.Janus.Framework.Ipc.PipeHandle

Holds the operating system native handle and the current state of the pipe connection.
Inheritance: IDisposable
Mostrar archivo Open project: rsdn/janus Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Closes a named pipe and releases the native handle.

PipeHandle ( IntPtr hnd ) : System

Creates a PipeHandle instance using the passed native handle.

PipeHandle ( IntPtr hnd, InterProcessConnectionState state ) : System

Creates a PipeHandle instance using the provided native handle and state.

PipeHandle ( InterProcessConnectionState state ) : System

Creates a PipeHandle instance with an invalid native handle.

Method Details

Dispose() public method

Closes a named pipe and releases the native handle.
public Dispose ( ) : void
return void

PipeHandle() public method

Creates a PipeHandle instance using the passed native handle.
public PipeHandle ( IntPtr hnd ) : System
hnd System.IntPtr The native handle.
return System

PipeHandle() public method

Creates a PipeHandle instance using the provided native handle and state.
public PipeHandle ( IntPtr hnd, InterProcessConnectionState state ) : System
hnd System.IntPtr The native handle.
state InterProcessConnectionState The state of the pipe connection.
return System

PipeHandle() public method

Creates a PipeHandle instance with an invalid native handle.
public PipeHandle ( InterProcessConnectionState state ) : System
state InterProcessConnectionState
return System