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