PipesClient.WaitForDisconnection
Blocks until the client has disconnected from the server, or the timeout elapses.
Remarks
It does not report which of the two happened.
Syntax
| Syntax | Description |
|---|---|
| WaitForDisconnection(int ms) | Blocks until the client has disconnected from the server, or the timeout elapses. |
Parameters
| Name | Type | Description |
|---|---|---|
| ms | int | Milliseconds to wait. |
Example
1
2
3
4
5
6
7
8
using Nova.IPC.Pipes;
PipesClient client = new PipesClient("NovaDemoServer");
client.Start();
client.WaitForConnection(5000);
client.Stop();
client.WaitForDisconnection(5000);
This post is licensed under CC BY 4.0 by the author.