C# Класс Rsdn.Janus.Framework.Ipc.ClientPipeConnection

Used by client applications to communicate with server ones by using named pipes.
Наследование: APipeConnection
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ClientPipeConnection ( string name ) : System

Creates an instance of the ClientPipeConnection assuming that the server pipe is created on the same machine.

The maximum bytes to read from the client is set to be Int32.MaxValue.

ClientPipeConnection ( string name, string server ) : System

Creates an instance of the ClientPipeConnection specifying the network name of the server.

The maximum bytes to read from the client is set to be Int32.MaxValue.

Close ( ) : void

Closes a client named pipe connection.

A client pipe connection is closed by closing the underlying pipe handle.

Connect ( ) : void

Connects a client pipe to an existing server one.

TryConnect ( ) : bool

Attempts to establish a connection to the a server named pipe.

If the attempt is successful the method creates the field.

This method is used when it is not known whether a server pipe already exists.

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

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

Creates an instance of the ClientPipeConnection assuming that the server pipe is created on the same machine.
The maximum bytes to read from the client is set to be Int32.MaxValue.
public ClientPipeConnection ( string name ) : System
name string The name of the server pipe.
Результат System

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

Creates an instance of the ClientPipeConnection specifying the network name of the server.
The maximum bytes to read from the client is set to be Int32.MaxValue.
public ClientPipeConnection ( string name, string server ) : System
name string The name of the server pipe.
server string The network name of the machine, where the server pipe is created.
Результат System

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

Closes a client named pipe connection.
A client pipe connection is closed by closing the underlying pipe handle.
public Close ( ) : void
Результат void

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

Connects a client pipe to an existing server one.
public Connect ( ) : void
Результат void

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

Attempts to establish a connection to the a server named pipe.
If the attempt is successful the method creates the field.

This method is used when it is not known whether a server pipe already exists.
public TryConnect ( ) : bool
Результат bool