C# Класс wyDay.Controls.PipeClient

Allow pipe communication between a server and a client.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

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