 | OutProcessClientConnectAsync Method |
Requests the start of the client's background message processing thread and provides a way for the caller
to await the client reaching the started state. Note that the client is considered 'started' when it
it reaches the state of waiting for a a server to respond to a connection request, not when a server
connection is made at some random later time.
Namespace: Orthogonal.MixedCommsLibAssembly: Orthogonal.MixedCommsLib (in Orthogonal.MixedCommsLib.dll) Version: 2.0.3
Syntaxpublic Task ConnectAsync(
string serverAddress = "localhost",
int port = 41411
)
Parameters
- serverAddress String (Optional)
- The server machine name or IP address string. The default is "localhost" which
assumes that the server is running on the same computer as the client.
- port Int32 (Optional)
- The port number to use in the server connection. Valid range is 32768 to 65535.
The default is 41411. Multiple clients on the same computer must use different port numbers.
Return Value
TaskA Task that can be used to await connect completion.
Exceptions
See Also