C# Class EpLibrary.cs.IpcPipe

IPC Pipe class
Inheritance: IpcInterface, IDisposable
Afficher le fichier Open project: juhgiyo/EpLibrary.cs Class Usage Examples

Private Properties

Свойство Type Description
Dispose void
OnClientConnected void
OnReadComplete void
OnWriteComplete void

Méthodes publiques

Méthode 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

Méthode 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 méthode

Create the pipe
public Create ( ) : bool
Résultat bool

Dispose() public méthode

public Dispose ( ) : void
Résultat void

IpcPipe() public méthode

Default Constructor
public IpcPipe ( IpcPipeOps options ) : System
options IpcPipeOps the pipe options
Résultat System

IsConnectionAlive() public méthode

Check if the connection is alive
public IsConnectionAlive ( ) : bool
Résultat bool

KillConnection() public méthode

Kill the connection
public KillConnection ( ) : void
Résultat void

Reconnect() public méthode

Kill current connection and wait for other connection
public Reconnect ( ) : void
Résultat void

Write() public méthode

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
Résultat void