C# Class EpLibrary.cs.IpcClient

Inheritance: ThreadEx, IpcClientInterface, IDisposable
Afficher le fichier Open project: juhgiyo/EpLibrary.cs Class Usage Examples

Private Properties

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

Méthodes publiques

Méthode Description
Connect ( EpLibrary.cs.IpcClientOps ops, int waitTimeInMilliSec ) : void

Connect to the server

Disconnect ( ) : void

Stop the server

Dispose ( ) : void
GetFullPipeName ( ) : string

Get the pipe name of server

GetMaxReadDataByteSize ( ) : int

Get the maximum read data byte size

GetMaxWriteDataByteSize ( ) : int

Get the maximum write data byte size

IpcClient ( ) : System

Default Constructor

IsConnected ( ) : bool

Check if the client is connected to server

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

Write data to the pipe

Méthodes protégées

Méthode Description
execute ( ) : void

Actual connect function

Private Methods

Méthode Description
Dispose ( bool isDisposing ) : void
OnReadComplete ( IAsyncResult result ) : void

Handles when Read is completed

OnWriteComplete ( IAsyncResult result ) : void

Handles when Write is completed

startReceive ( ) : void

start receiving from pipe

Method Details

Connect() public méthode

Connect to the server
public Connect ( EpLibrary.cs.IpcClientOps ops, int waitTimeInMilliSec ) : void
ops EpLibrary.cs.IpcClientOps the client options
waitTimeInMilliSec int the wait time for connection in milli-second.
Résultat void

Disconnect() public méthode

Stop the server
public Disconnect ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetFullPipeName() public méthode

Get the pipe name of server
public GetFullPipeName ( ) : string
Résultat string

GetMaxReadDataByteSize() public méthode

Get the maximum read data byte size
public GetMaxReadDataByteSize ( ) : int
Résultat int

GetMaxWriteDataByteSize() public méthode

Get the maximum write data byte size
public GetMaxWriteDataByteSize ( ) : int
Résultat int

IpcClient() public méthode

Default Constructor
public IpcClient ( ) : System
Résultat System

IsConnected() public méthode

Check if the client is connected to server
public IsConnected ( ) : bool
Résultat bool

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

execute() protected méthode

Actual connect function
protected execute ( ) : void
Résultat void