PipesClient.Stop

Stops the client, and does not attempt to reconnect.


Remarks

The connection is closed and the Disconnected event is raised. The client stays disconnected even when AutoReconnect is true.


Syntax

SyntaxDescription
Stop()Stop the client, and do not attempt to reconnect.

Example

1
2
3
4
5
6
7
8
9
10
using Nova.IPC.Pipes;

PipesClient client = new PipesClient("NovaDemoServer");
client.Start();
client.WaitForConnection(5000);

// ... exchange messages ...

client.Stop();
client.WaitForDisconnection(5000);
This post is licensed under CC BY 4.0 by the author.

Trending Tags