-
Notifications
You must be signed in to change notification settings - Fork 179
Open
Description
When connecting from the client, there seems to be no way to tell if there server is actually running and the connection is up. In the following code:
_pipe = new NamedPipeClient<OA_Message>(PipeName);
_pipe.ServerMessage += _pipe_ServerMessage;
_pipe.Error += (ex) => _error = ex.ToString();
_pipe.Disconnected += _pipe_Disconnected;
_pipe.Start();
_pipe.WaitForConnection(300);
Everything goes fine as if it worked, except that the server is not running the the pipe is not connected. Within the NamedPipeClient there is a protected member _connection that is NULL in this case, but I can't check it because it is private. It seems like there should be some kind of IsConnected property, or that the Error callback should be called if there isn't a server to connect with...
Am I missing something?
Su-s and geniuszxy
Metadata
Metadata
Assignees
Labels
No labels