Class PipesClient
Client using named pipes
Implements
Inherited Members
Namespace: VoltRpc.Communication.Pipes
Assembly: VoltRpc.Communication.Pipes.dll
Syntax
public sealed class PipesClient : Client, IDisposable
Constructors
| Edit this page View SourcePipesClient(string, int)
Creates a new PipesClient instance
Declaration
public PipesClient(string pipeName, int bufferSize = 8000)
Parameters
Type | Name | Description |
---|---|---|
string | pipeName | The name of the pipe |
int | bufferSize | The size of the buffers |
PipesClient(string, int, int)
Creates a new PipesClient instance
Declaration
public PipesClient(string pipeName, int connectionTimeout, int bufferSize = 8000)
Parameters
Type | Name | Description |
---|---|---|
string | pipeName | The name of the pipe |
int | connectionTimeout | The timeout for connection |
int | bufferSize | The size of the buffers |
PipesClient(string, string, int)
Creates a new PipesClient instance
Declaration
public PipesClient(string server, string pipeName, int bufferSize = 8000)
Parameters
Type | Name | Description |
---|---|---|
string | server | The server to connect to |
string | pipeName | The name of the pipe |
int | bufferSize | The size of the buffers |
PipesClient(string, string, int, int)
Creates a new PipesClient instance
Declaration
public PipesClient(string server, string pipeName, int connectionTimeout, int bufferSize = 8000)
Parameters
Type | Name | Description |
---|---|---|
string | server | The server to connect to |
string | pipeName | The name of the pipe |
int | connectionTimeout | The timeout for connection |
int | bufferSize | The size of the buffers |
Fields
| Edit this page View SourceDefaultConnectionTimeout
Default connection timeout time
Declaration
public const int DefaultConnectionTimeout = 7000
Field Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceConnect()
Connects the Client to a host
Declaration
public override void Connect()
Overrides
Exceptions
Type | Condition |
---|---|
ConnectionFailedException | Thrown if an error occurs while connecting. |
Dispose()
Destroys the Client instance
Declaration
public override void Dispose()