C# Class EpLibrary.cs.IpcPipe

IPC Pipe class
Inheritance: IpcInterface, IDisposable
显示文件 Open project: juhgiyo/EpLibrary.cs Class Usage Examples

Private Properties

Property Type Description
Dispose void
OnClientConnected void
OnReadComplete void
OnWriteComplete void

Public Methods

Method Description
Create ( ) : bool

Create the pipe

Dispose ( ) : void
IpcPipe ( IpcPipeOps options ) : System

Default Constructor

IsConnectionAlive ( ) : bool

Check if the connection is alive

KillConnection ( ) : void

Kill the connection

Reconnect ( ) : void

Kill current connection and wait for other connection

Write ( byte data, int offset, int dataByteSize ) : void

Write data to the pipe

Private Methods

Method Description
Dispose ( bool isDisposing ) : void
OnClientConnected ( IAsyncResult result ) : void

Handle on client connected

OnReadComplete ( IAsyncResult result ) : void

Handle when read is completed

OnWriteComplete ( IAsyncResult result ) : void

Handles when Write is completed

Method Details

Create() public method

Create the pipe
public Create ( ) : bool
return bool

Dispose() public method

public Dispose ( ) : void
return void

IpcPipe() public method

Default Constructor
public IpcPipe ( IpcPipeOps options ) : System
options IpcPipeOps the pipe options
return System

IsConnectionAlive() public method

Check if the connection is alive
public IsConnectionAlive ( ) : bool
return bool

KillConnection() public method

Kill the connection
public KillConnection ( ) : void
return void

Reconnect() public method

Kill current connection and wait for other connection
public Reconnect ( ) : void
return void

Write() public method

Write data to the pipe
public Write ( byte data, int offset, int dataByteSize ) : void
data byte the data to write
offset int offset to start write from given data
dataByteSize int byte size of the data to write
return void