private void ConnectPeer(int timeoutMs) { _peer.Connect(OnConnected, timeoutMs); }
private void ConnectPeer(string user, string password, int timeoutMs) { _user = user; _password = password; _peer.Connect(OnConnectAuthenticate, timeoutMs); }
private void ConnectPeer(int timeoutMs) { _peer.Connect(OnConnect, timeoutMs); WaitOne(); }