C# 클래스 wyDay.Controls.PipeClient

Allow pipe communication between a server and a client.
상속: IDisposable
파일 보기 프로젝트 열기: RagingBigFemaleBird/sgs 1 사용 예제들

공개 메소드들

메소드 설명
Connect ( string pipename ) : void

Connects to the server with a pipename.

Disconnect ( ) : void

Disconnects from the server.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

SendMessage ( byte message ) : bool

Sends a message to the server.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

비공개 메소드들

메소드 설명
CreateFile ( string pipeName, uint dwDesiredAccess, uint dwShareMode, IntPtr lpSecurityAttributes, uint dwCreationDisposition, uint dwFlagsAndAttributes, IntPtr hTemplate ) : SafeFileHandle
Read ( ) : void

메소드 상세

Connect() 공개 메소드

Connects to the server with a pipename.
public Connect ( string pipename ) : void
pipename string The name of the pipe to connect to.
리턴 void

Disconnect() 공개 메소드

Disconnects from the server.
public Disconnect ( ) : void
리턴 void

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool Result: true to release both managed and unmanaged resources; false to release only unmanaged resources.
리턴 void

SendMessage() 공개 메소드

Sends a message to the server.
public SendMessage ( byte message ) : bool
message byte The message to send.
리턴 bool