Class PipesClient

Client using named pipes

Inheritance
PipesClient
Implements
IDisposable
Namespace: VoltRpc.Communication.Pipes
Assembly: VoltRpc.Communication.Pipes.dll
Syntax
public sealed class PipesClient : Client, IDisposable

Constructors

| Edit this page View Source

PipesClient(string, int)

Creates a new PipesClient instance

Declaration
public PipesClient(string pipeName, int bufferSize = 8000)
Parameters
TypeNameDescription
stringpipeName

The name of the pipe

intbufferSize

The size of the buffers

| Edit this page View Source

PipesClient(string, int, int)

Creates a new PipesClient instance

Declaration
public PipesClient(string pipeName, int connectionTimeout, int bufferSize = 8000)
Parameters
TypeNameDescription
stringpipeName

The name of the pipe

intconnectionTimeout

The timeout for connection

intbufferSize

The size of the buffers

| Edit this page View Source

PipesClient(string, string, int)

Creates a new PipesClient instance

Declaration
public PipesClient(string server, string pipeName, int bufferSize = 8000)
Parameters
TypeNameDescription
stringserver

The server to connect to

stringpipeName

The name of the pipe

intbufferSize

The size of the buffers

| Edit this page View Source

PipesClient(string, string, int, int)

Creates a new PipesClient instance

Declaration
public PipesClient(string server, string pipeName, int connectionTimeout, int bufferSize = 8000)
Parameters
TypeNameDescription
stringserver

The server to connect to

stringpipeName

The name of the pipe

intconnectionTimeout

The timeout for connection

intbufferSize

The size of the buffers

Fields

| Edit this page View Source

DefaultConnectionTimeout

Default connection timeout time

Declaration
public const int DefaultConnectionTimeout = 7000
Field Value
TypeDescription
int

Methods

| Edit this page View Source

Connect()

Connects the Client to a host

Declaration
public override void Connect()
Overrides
Client.Connect()
Exceptions
TypeCondition
ConnectionFailedException

Thrown if an error occurs while connecting.

| Edit this page View Source

Dispose()

Destroys the Client instance

Declaration
public override void Dispose()
Overrides
Client.Dispose()

Implements

IDisposable