C# Class Rsdn.Janus.Framework.Ipc.ClientPipeConnection

Used by client applications to communicate with server ones by using named pipes.
Inheritance: APipeConnection
Afficher le fichier Open project: rsdn/janus Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

ClientPipeConnection() public méthode

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.
Résultat System

ClientPipeConnection() public méthode

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.
Résultat System

Close() public méthode

Closes a client named pipe connection.
A client pipe connection is closed by closing the underlying pipe handle.
public Close ( ) : void
Résultat void

Connect() public méthode

Connects a client pipe to an existing server one.
public Connect ( ) : void
Résultat void

TryConnect() public méthode

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
Résultat bool