C# 클래스 EpLibrary.cs.IpcClient

상속: ThreadEx, IpcClientInterface, IDisposable
파일 보기 프로젝트 열기: juhgiyo/EpLibrary.cs 1 사용 예제들

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