C# Класс EpLibrary.cs.IpcClient

Наследование: ThreadEx, IpcClientInterface, IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
Dispose void
OnReadComplete void
OnWriteComplete void
startReceive void

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
execute ( ) : void

Actual connect function

Приватные методы

Метод Описание
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

Описание методов

Connect() публичный Метод

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.
Результат void

Disconnect() публичный Метод

Stop the server
public Disconnect ( ) : void
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

GetFullPipeName() публичный Метод

Get the pipe name of server
public GetFullPipeName ( ) : string
Результат string

GetMaxReadDataByteSize() публичный Метод

Get the maximum read data byte size
public GetMaxReadDataByteSize ( ) : int
Результат int

GetMaxWriteDataByteSize() публичный Метод

Get the maximum write data byte size
public GetMaxWriteDataByteSize ( ) : int
Результат int

IpcClient() публичный Метод

Default Constructor
public IpcClient ( ) : System
Результат System

IsConnected() публичный Метод

Check if the client is connected to server
public IsConnected ( ) : bool
Результат bool

Write() публичный Метод

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
Результат void

execute() защищенный Метод

Actual connect function
protected execute ( ) : void
Результат void